From b998b35adb8f4063cb910e0116928b19e67f59d4 Mon Sep 17 00:00:00 2001 From: Aaron LI Date: Thu, 21 Sep 2017 17:21:38 +0800 Subject: Add _xsessionrc to source ~/.profile for display managers Also tweak _profile a bit. --- _xsessionrc | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 _xsessionrc (limited to '_xsessionrc') diff --git a/_xsessionrc b/_xsessionrc new file mode 100644 index 0000000..206854a --- /dev/null +++ b/_xsessionrc @@ -0,0 +1,25 @@ +# +# ~/.xsessionrc +# +# Some display managers (e.g., lightdm) do NOT source ~/.profile +# or ~/.xprofile, but some other display managers do. Therefore, +# it is better to use this ~/.xsessionrc to do the initializations, +# as it will be *sourced* by Xsession(5), making the results more +# consistent among different display managers. +# +# See Xsession(5) for more details. +# +# References: +# [1] XFCE/lightdm startup configuration files +# https://superuser.com/a/687401 +# [2] lightdm forgets to source /etc/profile and ~/.profile +# https://bugs.launchpad.net/ubuntu/+source/lightdm/+bug/794315 +# +# +# Aaron LI +# 2017-09-20 +# + +[ -e ${HOME}/.profile ] && . ${HOME}/.profile || true + +# vim: set ts=8 sw=4 tw=0 fenc=utf-8 ft=sh: # -- cgit v1.2.2