Bug#743015: xinit does not handle starting X correctly
I've tested the change.
When using startx, X session is correctly started at the same VT, but some features are missing.
I.e. I can not edit Network manager connections. (works when I login with lightdm)
$ loginctl show-session $XDG_SESSION_ID
Id=c9
Timestamp=Mon 2014-04-14 18:41:16 MSK
TimestampMonotonic=1781609477
DefaultControlGroup=systemd:/user/1000.user/c9.session
VTNr=1
TTY=/dev/tty1
Remote=no
Service=login
Leader=22240
Audit=0
Type=tty
Class=user
Active=yes
State=active
KillProcesses=no
IdleHint=no
IdleSinceHint=1397486656800830
IdleSinceHintMonotonic=1961448234
Name=psycho
May be Type=tty is to blame? Where and how this can be changed?
I also suggest this fix to xserverrc:
exec /usr/bin/X -nolisten tcp `ps -o cmd -p 1 | grep -q '/bin/systemd' 2>/dev/null && echo vt$XDG_VTNR` "$@"
This way we do not hurt xsession if systemd is not used.
Reply to: