summaryrefslogtreecommitdiff
path: root/X11
diff options
context:
space:
mode:
Diffstat (limited to 'X11')
-rw-r--r--X11/Xsession.d/01-local-lightdm-profile12
1 files changed, 12 insertions, 0 deletions
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