fix lightdm session /etc/profile load
This commit is contained in:
1 parent
d3334f128c
commit
249cdcd38e
1 file changed
+4
-1
@@ -1,4 +1,7 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
source /etc/profile
|
||||||
|
mkdir -p ~/.cache/
|
||||||
|
exec &> ~/.cache/lightdm-user.log
|
||||||
if [ ${XDG_SESSION_TYPE} == "wayland" ] ; then
|
if [ ${XDG_SESSION_TYPE} == "wayland" ] ; then
|
||||||
# Wait until the Xorg process for the user finishes
|
# Wait until the Xorg process for the user finishes
|
||||||
while pgrep -u 0 Xorg > /dev/null; do
|
while pgrep -u 0 Xorg > /dev/null; do
|
||||||
@@ -11,4 +14,4 @@ if [ ${XDG_SESSION_TYPE} == "wayland" ] ; then
|
|||||||
exec env dbus-run-session $@
|
exec env dbus-run-session $@
|
||||||
else
|
else
|
||||||
exec /etc/X11/xinit/Xsession $@
|
exec /etc/X11/xinit/Xsession $@
|
||||||
fi
|
fi
|
||||||
Reference in new issue
Block a user