mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-06-03 14:19:52 +00:00
xserver-nodm-init: set USER and HOME
* when it's executed from init then HOME is set to '/' * shadow/agetty set HOME fine and Xinit is doing the same, but for xinit Xsession it didn't work Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
This commit is contained in:
@@ -17,6 +17,13 @@ case "$1" in
|
|||||||
if [ "$2" != "background" ]; then
|
if [ "$2" != "background" ]; then
|
||||||
$0 $1 background &
|
$0 $1 background &
|
||||||
else
|
else
|
||||||
|
# work around from /etc/X11/Xinit
|
||||||
|
export USER=root
|
||||||
|
export HOME=/home/root
|
||||||
|
if [ ! -d $HOME ] && [ -d /root ]; then
|
||||||
|
HOME=/root
|
||||||
|
fi
|
||||||
|
|
||||||
. /etc/profile
|
. /etc/profile
|
||||||
|
|
||||||
echo "Starting Xserver"
|
echo "Starting Xserver"
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ LICENSE = "GPLv2"
|
|||||||
LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe"
|
LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe"
|
||||||
SECTION = "x11"
|
SECTION = "x11"
|
||||||
|
|
||||||
PR = "r10"
|
PR = "r11"
|
||||||
|
|
||||||
SRC_URI = "file://xserver-nodm \
|
SRC_URI = "file://xserver-nodm \
|
||||||
file://xserver-nodm.service \
|
file://xserver-nodm.service \
|
||||||
|
|||||||
Reference in New Issue
Block a user