summaryrefslogtreecommitdiff
path: root/X11/Xsession.d/91-local-lightdm-profile
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2013-02-13 15:41:39 +0100
committerJonas Smedegaard <dr@jones.dk>2013-02-13 15:41:39 +0100
commit3e8a63580af41b9925c40c50e68fb545a5a0f152 (patch)
tree75fc5fdb8fe6b48e3c03bb0d1c3161dad5cca64b /X11/Xsession.d/91-local-lightdm-profile
parent80f8a7d875cef2d73af2afd9c9031046c71385b2 (diff)
Rename lightdm-profile snippet to load after keychains load.
Diffstat (limited to 'X11/Xsession.d/91-local-lightdm-profile')
-rw-r--r--X11/Xsession.d/91-local-lightdm-profile12
1 files changed, 12 insertions, 0 deletions
diff --git a/X11/Xsession.d/91-local-lightdm-profile b/X11/Xsession.d/91-local-lightdm-profile
new file mode 100644
index 0000000..7afb6a2
--- /dev/null
+++ b/X11/Xsession.d/91-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