summaryrefslogtreecommitdiffstats
path: root/meta/packages/x11-common
diff options
context:
space:
mode:
Diffstat (limited to 'meta/packages/x11-common')
-rw-r--r--meta/packages/x11-common/xserver-nodm-init.bb4
-rwxr-xr-xmeta/packages/x11-common/xserver-nodm-init/xserver-nodm9
2 files changed, 10 insertions, 3 deletions
diff --git a/meta/packages/x11-common/xserver-nodm-init.bb b/meta/packages/x11-common/xserver-nodm-init.bb
index 521f17c5f4..c9efb71b81 100644
--- a/meta/packages/x11-common/xserver-nodm-init.bb
+++ b/meta/packages/x11-common/xserver-nodm-init.bb
@@ -2,8 +2,8 @@ DESCRIPTION = "Simple Xserver Init Script (no dm)"
2LICENSE = "GPL" 2LICENSE = "GPL"
3SECTION = "x11" 3SECTION = "x11"
4PRIORITY = "optional" 4PRIORITY = "optional"
5PR = "r18" 5PR = "r21"
6RDEPENDS = "dbus-wait" 6RDEPENDS_${PN} = "dbus-wait sudo"
7 7
8SRC_URI = "file://xserver-nodm" 8SRC_URI = "file://xserver-nodm"
9S = ${WORKDIR} 9S = ${WORKDIR}
diff --git a/meta/packages/x11-common/xserver-nodm-init/xserver-nodm b/meta/packages/x11-common/xserver-nodm-init/xserver-nodm
index f6399fc1fa..69ea949724 100755
--- a/meta/packages/x11-common/xserver-nodm-init/xserver-nodm
+++ b/meta/packages/x11-common/xserver-nodm-init/xserver-nodm
@@ -26,8 +26,15 @@ done
26case "$1" in 26case "$1" in
27 start) 27 start)
28 . /etc/profile 28 . /etc/profile
29 username=root
29 echo "Starting Xserver" 30 echo "Starting Xserver"
30 /etc/X11/Xserver & 31 if [ -f /etc/X11/Xusername ]; then
32 username=`cat /etc/X11/Xusername`
33 fi
34 # Using sudo -i here has the nice side effect of making sire
35 # HOME, USER and other previously problematic variables
36 # are set correctly
37 sudo -b -i -u $username /etc/X11/Xserver
31 # Wait for the desktop to say its finished loading 38 # Wait for the desktop to say its finished loading
32 dbus-wait org.matchbox_project.desktop Loaded 39 dbus-wait org.matchbox_project.desktop Loaded
33 ;; 40 ;;