diff options
Diffstat (limited to 'meta/recipes-graphics/x11-common/xserver-nodm-init')
-rw-r--r-- | meta/recipes-graphics/x11-common/xserver-nodm-init/Xusername | 1 | ||||
-rwxr-xr-x | meta/recipes-graphics/x11-common/xserver-nodm-init/xserver-nodm | 4 |
2 files changed, 5 insertions, 0 deletions
diff --git a/meta/recipes-graphics/x11-common/xserver-nodm-init/Xusername b/meta/recipes-graphics/x11-common/xserver-nodm-init/Xusername new file mode 100644 index 0000000000..7060e5ec16 --- /dev/null +++ b/meta/recipes-graphics/x11-common/xserver-nodm-init/Xusername | |||
@@ -0,0 +1 @@ | |||
xuser | |||
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 69ea949724..d8c4ba0d11 100755 --- a/meta/recipes-graphics/x11-common/xserver-nodm-init/xserver-nodm +++ b/meta/recipes-graphics/x11-common/xserver-nodm-init/xserver-nodm | |||
@@ -30,6 +30,10 @@ case "$1" in | |||
30 | echo "Starting Xserver" | 30 | echo "Starting Xserver" |
31 | if [ -f /etc/X11/Xusername ]; then | 31 | if [ -f /etc/X11/Xusername ]; then |
32 | username=`cat /etc/X11/Xusername` | 32 | username=`cat /etc/X11/Xusername` |
33 | # setting for rootless X | ||
34 | chmod o+w /var/log | ||
35 | chmod g+r /dev/tty[0-3] | ||
36 | chmod o+rw /dev/input/* | ||
33 | fi | 37 | fi |
34 | # Using sudo -i here has the nice side effect of making sire | 38 | # Using sudo -i here has the nice side effect of making sire |
35 | # HOME, USER and other previously problematic variables | 39 | # HOME, USER and other previously problematic variables |