fix lightdm session /etc/profile load

This commit is contained in:
sulincix committed 2025-04-20 16:46:13 +00:00
1 parent d3334f128c
commit 249cdcd38e
1 file changed
+4 -1
+4 -1
View File
@@ -1,4 +1,7 @@
#!/bin/sh
source /etc/profile
mkdir -p ~/.cache/
exec &> ~/.cache/lightdm-user.log
if [ ${XDG_SESSION_TYPE} == "wayland" ] ; then
# Wait until the Xorg process for the user finishes
while pgrep -u 0 Xorg > /dev/null; do
@@ -11,4 +14,4 @@ if [ ${XDG_SESSION_TYPE} == "wayland" ] ; then
exec env dbus-run-session $@
else
exec /etc/X11/xinit/Xsession $@
fi
fi