From 249cdcd38e3d90a408454a69cd2352d2b9690eac Mon Sep 17 00:00:00 2001 From: sulincix Date: Sun, 20 Apr 2025 16:46:13 +0000 Subject: [PATCH] fix lightdm session /etc/profile load --- x11/misc/lightdm/lightdm-session.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/x11/misc/lightdm/lightdm-session.sh b/x11/misc/lightdm/lightdm-session.sh index 7232b7ed..fcfd1598 100644 --- a/x11/misc/lightdm/lightdm-session.sh +++ b/x11/misc/lightdm/lightdm-session.sh @@ -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 \ No newline at end of file +fi