xserver-nodm-init: do not execute Xsession twice

The /etc/X11/Xserver script runs xinit /etc/X11/Xsession already so
there is no need to do /usr/bin/xinit /etc/X11/Xsession --
/etc/X11/Xserver. Having xinit nested will result in Xsession being
executed twice. To resolve this, just execute /etc/X11/Xserver directly
instead of going through xinit.

Signed-off-by: Jonathan Liu <net147@gmail.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
This commit is contained in:
Jonathan Liu 2013-06-12 08:30:15 +00:00 committed by Martin Jansa
parent b8a4545487
commit 305038f932

View File

@ -3,7 +3,7 @@ Description=Xserver startup with a display manager
[Service]
EnvironmentFile=/etc/default/xserver-nodm
ExecStart=/usr/bin/xinit /etc/X11/Xsession -- /etc/X11/Xserver
ExecStart=/etc/X11/Xserver
[Install]
Alias=display-manager.service