1dba5a0b19
systemd-logind integration does not work when starting X on a new tty, as that detaches X from the current session and after hat systemd-logind revokes all rights on any already open fds and refuses to open new fds for X. This means that currently e.g. "startx -- vt7" breaks, and breaks badly, requiring ssh access to the system to kill X. The fix for this is easy, we must not use systemd-logind integration when not using KeepTty, or iow we may only use systemd-logind integration together with KeepTty. But the final KeepTty value is not known until the code to chose which vtno to run on has been called, which currently happens after intializing systemd-logind. This commit is step 1 in fixing the "startx -- vt7" breakage, it factors out the linux xf86OpenConsole bits which set xf86Info.vtno and keepTty so that these can be called earlier. Calling this earlier is safe as this code has no side effects other than setting xf86Info.vtno and keepTty. Note this basically only moves a large chunk of xf86OpenConsole() into linux_parse_vt_settings() without changing a single line of it, this is hard to see in the diff because the identation level has changed. Signed-off-by: Hans de Goede <hdegoede@redhat.com> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net> |
||
---|---|---|
.. | ||
common | ||
ddc | ||
dixmods | ||
doc | ||
dri | ||
dri2 | ||
drivers | ||
exa | ||
fbdevhw | ||
glamor_egl | ||
i2c | ||
int10 | ||
loader | ||
man | ||
modes | ||
os-support | ||
parser | ||
ramdac | ||
shadowfb | ||
utils | ||
vbe | ||
vgahw | ||
x86emu | ||
.gitignore | ||
Makefile.am | ||
sdksyms.sh | ||
xorg-wrapper.c | ||
Xorg.sh.in | ||
xorgconf.cpp |