- Package:
- x11-common
- Source:
- xorg
- Submitter:
- graeme vetterlein
- Date:
- 2015-05-04 10:21:19 UTC
- Severity:
- normal
Dear Maintainer,
*** Reporter, please consider answering these questions, where appropriate ***
* What led up to the situation?
My ~/.profile (I believe the default jessie one) was not being sourced as $PATH
was being set incorrectly
* What exactly did you do (or not do) that was effective (or
ineffective)?
I added trace to /etc/profile and ~/.profile (symlinked ~/.bash_profile to ~/.profile)
* What was the outcome of this action?
trace did not trigger
* What outcome did you expect instead?
I expected BOTH scripts to be executed at a GUI logon.
Looking back @ wheezy, I see work was done in /etc/gdm/Xsession. I took the relevant section
of that file and used it to create:
/etc/X11/Xsession.d/70fix_lightdm_gpv:
# GPV: 2-May-2015, lightdm + cinnamon forgets to source ANY profiles!!
# 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"
# Local Variables:
# mode: shell-script
# sh-indentation: 2
# indent-tabs-mode: nil
# End:
# vim:set ai et sts=2 sw=2 tw=80:
This caused both /etc/profile and ~/.profile to get executed and so the wheezy behaviour was restored.
The reported issue is not specific to cinnamon, so I'm reassigning parts of this to the lightdm package maintainers and the rest to the x11-common maintainers. not specified if it needs to be sourced by a X session, and it hasn't been the default in most Debian desktop managers. The documented way to add environment variables is using the ~/.xsessionrc to add them when starting the X session (see Xsession(5)), or /etc/environment and ~/.pam_environment to add them when login in via pam. Sadly, the pam file distributed in the lightdm package is not processing the /etc/environment and ~/.pam_environment file. Thus the reassignment of this bug to the lightdm package. Lightdm maintainers: please consider adding: auth required pam_env.so user_readenv=1 to the /etc/pam.d/lightdm conffile I'm not sure this is a good idea, but I forward this part to the x11-common package maintainers, so they decide whether it makes sense to add a Xsession.d script for this. Happy hacking,