summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xmeta/recipes-graphics/x11-common/xserver-nodm-init/xserver-nodm6
1 files changed, 2 insertions, 4 deletions
diff --git a/meta/recipes-graphics/x11-common/xserver-nodm-init/xserver-nodm b/meta/recipes-graphics/x11-common/xserver-nodm-init/xserver-nodm
index d8c4ba0d11..3b71983c0a 100755
--- a/meta/recipes-graphics/x11-common/xserver-nodm-init/xserver-nodm
+++ b/meta/recipes-graphics/x11-common/xserver-nodm-init/xserver-nodm
@@ -35,10 +35,8 @@ case "$1" in
35 chmod g+r /dev/tty[0-3] 35 chmod g+r /dev/tty[0-3]
36 chmod o+rw /dev/input/* 36 chmod o+rw /dev/input/*
37 fi 37 fi
38 # Using sudo -i here has the nice side effect of making sire 38 # Using su rather than sudo as latest 1.8.1 cause failure [YOCTO #1211]
39 # HOME, USER and other previously problematic variables 39 su -l -c '/etc/X11/Xserver&' $username
40 # are set correctly
41 sudo -b -i -u $username /etc/X11/Xserver
42 # Wait for the desktop to say its finished loading 40 # Wait for the desktop to say its finished loading
43 dbus-wait org.matchbox_project.desktop Loaded 41 dbus-wait org.matchbox_project.desktop Loaded
44 ;; 42 ;;