From e71b10c73fb930cd4d19d91ba1c6f03119ec015a Mon Sep 17 00:00:00 2001 From: root Date: Fri, 1 Feb 2013 13:06:13 +0100 Subject: Add Xsession snippet to load profile when using lightdm. --- X11/Xsession.d/01-local-lightdm-profile | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 X11/Xsession.d/01-local-lightdm-profile (limited to 'X11') diff --git a/X11/Xsession.d/01-local-lightdm-profile b/X11/Xsession.d/01-local-lightdm-profile new file mode 100644 index 0000000..7afb6a2 --- /dev/null +++ b/X11/Xsession.d/01-local-lightdm-profile @@ -0,0 +1,12 @@ +# load profile and xprofile when using lightdm +# +# borrowed from /etc/gdm3/Xsession + +if pidof lightdm; then + # First read /etc/profile and .profile + test -f /etc/profile && . /etc/profile + test -f "$HOME/.profile" && . "$HOME/.profile" + # Second read /etc/xprofile and .xprofile for X specific setup + test -f /etc/xprofile && . /etc/xprofile + test -f "$HOME/.xprofile" && . "$HOME/.xprofile" +fi -- cgit v1.2.3