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 authored and Martin Jansa committed 2013-06-20 12:29:55 +02:00
1 parent b8a4545487
commit 305038f932
1 file changed
+1 -1
@@ -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