[Touch-packages] [Bug 794315] Re: lightdm forgets to source /etc/profile and ~/.profile
** Changed in: lightdm (Debian) Status: Confirmed => Fix Released -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to lightdm in Ubuntu. https://bugs.launchpad.net/bugs/794315 Title: lightdm forgets to source /etc/profile and ~/.profile Status in Light Display Manager: Fix Released Status in lightdm package in Ubuntu: Fix Released Status in lightdm package in Debian: Fix Released Bug description: Binary package hint: lightdm /etc/gdm/Xsession had this code: # 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" so that, for example, ~/bin gets added to the path (by the default ~/.profile), and any user-customized environment setup gets run. After switching from gdm to lightdm, this no longer happens. This is going to be a regression now that lightdm is becoming the default display manager. ProblemType: Bug DistroRelease: Ubuntu 11.10 Package: lightdm 0.3.7-0ubuntu1 ProcVersionSignature: Ubuntu 2.6.39-3.10-generic 2.6.39 Uname: Linux 2.6.39-3-generic x86_64 NonfreeKernelModules: openafs Architecture: amd64 Date: Tue Jun 7 19:27:11 2011 EcryptfsInUse: Yes InstallationMedia: Ubuntu 11.04 "Natty Narwhal" - Alpha amd64 (20101202) ProcEnviron: LANGUAGE=en_US:en PATH=(custom, no user) LANG=en_US.utf8 LC_MESSAGES=en_US.utf8 SHELL=/bin/bash SourcePackage: lightdm UpgradeStatus: No upgrade log present (probably fresh install) To manage notifications about this bug go to: https://bugs.launchpad.net/lightdm/+bug/794315/+subscriptions -- Mailing list: https://launchpad.net/~touch-packages Post to : touch-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp
[Touch-packages] [Bug 794315] Re: lightdm forgets to source /etc/profile and ~/.profile
Derek, sourcing .profile makes perfect sense. You can't rely on having a terminal or really being interactive or anything else _anyway_, and in practice, long experience shows that sourcing profile in Xsession actually doesn't cause any problems in practice. Display managers should _always_ source .profile. -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to lightdm in Ubuntu. https://bugs.launchpad.net/bugs/794315 Title: lightdm forgets to source /etc/profile and ~/.profile Status in Light Display Manager: Fix Released Status in lightdm package in Ubuntu: Fix Released Status in lightdm package in Debian: Confirmed Bug description: Binary package hint: lightdm /etc/gdm/Xsession had this code: # 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" so that, for example, ~/bin gets added to the path (by the default ~/.profile), and any user-customized environment setup gets run. After switching from gdm to lightdm, this no longer happens. This is going to be a regression now that lightdm is becoming the default display manager. ProblemType: Bug DistroRelease: Ubuntu 11.10 Package: lightdm 0.3.7-0ubuntu1 ProcVersionSignature: Ubuntu 2.6.39-3.10-generic 2.6.39 Uname: Linux 2.6.39-3-generic x86_64 NonfreeKernelModules: openafs Architecture: amd64 Date: Tue Jun 7 19:27:11 2011 EcryptfsInUse: Yes InstallationMedia: Ubuntu 11.04 "Natty Narwhal" - Alpha amd64 (20101202) ProcEnviron: LANGUAGE=en_US:en PATH=(custom, no user) LANG=en_US.utf8 LC_MESSAGES=en_US.utf8 SHELL=/bin/bash SourcePackage: lightdm UpgradeStatus: No upgrade log present (probably fresh install) To manage notifications about this bug go to: https://bugs.launchpad.net/lightdm/+bug/794315/+subscriptions -- Mailing list: https://launchpad.net/~touch-packages Post to : touch-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp
[Touch-packages] [Bug 794315] Re: lightdm forgets to source /etc/profile and ~/.profile
Sigh. Display managers should NEVER source .profile at all... that file is exclusively for interactive shells, as is explicitly stated in all of the man pages of every shell ever. I just opened Bug #1468832 about this, where I also explained how to properly accomplish what people want here. -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to lightdm in Ubuntu. https://bugs.launchpad.net/bugs/794315 Title: lightdm forgets to source /etc/profile and ~/.profile Status in Light Display Manager: Fix Released Status in lightdm package in Ubuntu: Fix Released Status in lightdm package in Debian: Confirmed Bug description: Binary package hint: lightdm /etc/gdm/Xsession had this code: # 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 so that, for example, ~/bin gets added to the path (by the default ~/.profile), and any user-customized environment setup gets run. After switching from gdm to lightdm, this no longer happens. This is going to be a regression now that lightdm is becoming the default display manager. ProblemType: Bug DistroRelease: Ubuntu 11.10 Package: lightdm 0.3.7-0ubuntu1 ProcVersionSignature: Ubuntu 2.6.39-3.10-generic 2.6.39 Uname: Linux 2.6.39-3-generic x86_64 NonfreeKernelModules: openafs Architecture: amd64 Date: Tue Jun 7 19:27:11 2011 EcryptfsInUse: Yes InstallationMedia: Ubuntu 11.04 Natty Narwhal - Alpha amd64 (20101202) ProcEnviron: LANGUAGE=en_US:en PATH=(custom, no user) LANG=en_US.utf8 LC_MESSAGES=en_US.utf8 SHELL=/bin/bash SourcePackage: lightdm UpgradeStatus: No upgrade log present (probably fresh install) To manage notifications about this bug go to: https://bugs.launchpad.net/lightdm/+bug/794315/+subscriptions -- Mailing list: https://launchpad.net/~touch-packages Post to : touch-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp
[Touch-packages] [Bug 794315] Re: lightdm forgets to source /etc/profile and ~/.profile
See also Bug #1468834. -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to lightdm in Ubuntu. https://bugs.launchpad.net/bugs/794315 Title: lightdm forgets to source /etc/profile and ~/.profile Status in Light Display Manager: Fix Released Status in lightdm package in Ubuntu: Fix Released Status in lightdm package in Debian: Confirmed Bug description: Binary package hint: lightdm /etc/gdm/Xsession had this code: # 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 so that, for example, ~/bin gets added to the path (by the default ~/.profile), and any user-customized environment setup gets run. After switching from gdm to lightdm, this no longer happens. This is going to be a regression now that lightdm is becoming the default display manager. ProblemType: Bug DistroRelease: Ubuntu 11.10 Package: lightdm 0.3.7-0ubuntu1 ProcVersionSignature: Ubuntu 2.6.39-3.10-generic 2.6.39 Uname: Linux 2.6.39-3-generic x86_64 NonfreeKernelModules: openafs Architecture: amd64 Date: Tue Jun 7 19:27:11 2011 EcryptfsInUse: Yes InstallationMedia: Ubuntu 11.04 Natty Narwhal - Alpha amd64 (20101202) ProcEnviron: LANGUAGE=en_US:en PATH=(custom, no user) LANG=en_US.utf8 LC_MESSAGES=en_US.utf8 SHELL=/bin/bash SourcePackage: lightdm UpgradeStatus: No upgrade log present (probably fresh install) To manage notifications about this bug go to: https://bugs.launchpad.net/lightdm/+bug/794315/+subscriptions -- Mailing list: https://launchpad.net/~touch-packages Post to : touch-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp
[Touch-packages] [Bug 794315] Re: lightdm forgets to source /etc/profile and ~/.profile
Same happens with kubuntu vivid and sddm. Should this be fixed individually in each session manager? -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to lightdm in Ubuntu. https://bugs.launchpad.net/bugs/794315 Title: lightdm forgets to source /etc/profile and ~/.profile Status in Light Display Manager: Fix Released Status in lightdm package in Ubuntu: Fix Released Status in lightdm package in Debian: Confirmed Bug description: Binary package hint: lightdm /etc/gdm/Xsession had this code: # 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 so that, for example, ~/bin gets added to the path (by the default ~/.profile), and any user-customized environment setup gets run. After switching from gdm to lightdm, this no longer happens. This is going to be a regression now that lightdm is becoming the default display manager. ProblemType: Bug DistroRelease: Ubuntu 11.10 Package: lightdm 0.3.7-0ubuntu1 ProcVersionSignature: Ubuntu 2.6.39-3.10-generic 2.6.39 Uname: Linux 2.6.39-3-generic x86_64 NonfreeKernelModules: openafs Architecture: amd64 Date: Tue Jun 7 19:27:11 2011 EcryptfsInUse: Yes InstallationMedia: Ubuntu 11.04 Natty Narwhal - Alpha amd64 (20101202) ProcEnviron: LANGUAGE=en_US:en PATH=(custom, no user) LANG=en_US.utf8 LC_MESSAGES=en_US.utf8 SHELL=/bin/bash SourcePackage: lightdm UpgradeStatus: No upgrade log present (probably fresh install) To manage notifications about this bug go to: https://bugs.launchpad.net/lightdm/+bug/794315/+subscriptions -- Mailing list: https://launchpad.net/~touch-packages Post to : touch-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp
[Touch-packages] [Bug 794315] Re: lightdm forgets to source /etc/profile and ~/.profile
On 2015-03-22 06:06, seeker5528 wrote: Somebody posted a similar issue in the Debian mailing list recently, the recommendation there was to use '~/.xsessionrc'. Right. While that works in Ubuntu too, sourcing of /etc/profile and ~/.profile by the DM is established practice in Ubuntu since long, and a difference between the configuration prerequisites in Debian and Ubuntu (unless https://bugs.debian.org/636108 is fixed eventually). -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to lightdm in Ubuntu. https://bugs.launchpad.net/bugs/794315 Title: lightdm forgets to source /etc/profile and ~/.profile Status in Light Display Manager: Fix Released Status in lightdm package in Ubuntu: Fix Released Status in lightdm package in Debian: Confirmed Bug description: Binary package hint: lightdm /etc/gdm/Xsession had this code: # 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 so that, for example, ~/bin gets added to the path (by the default ~/.profile), and any user-customized environment setup gets run. After switching from gdm to lightdm, this no longer happens. This is going to be a regression now that lightdm is becoming the default display manager. ProblemType: Bug DistroRelease: Ubuntu 11.10 Package: lightdm 0.3.7-0ubuntu1 ProcVersionSignature: Ubuntu 2.6.39-3.10-generic 2.6.39 Uname: Linux 2.6.39-3-generic x86_64 NonfreeKernelModules: openafs Architecture: amd64 Date: Tue Jun 7 19:27:11 2011 EcryptfsInUse: Yes InstallationMedia: Ubuntu 11.04 Natty Narwhal - Alpha amd64 (20101202) ProcEnviron: LANGUAGE=en_US:en PATH=(custom, no user) LANG=en_US.utf8 LC_MESSAGES=en_US.utf8 SHELL=/bin/bash SourcePackage: lightdm UpgradeStatus: No upgrade log present (probably fresh install) To manage notifications about this bug go to: https://bugs.launchpad.net/lightdm/+bug/794315/+subscriptions -- Mailing list: https://launchpad.net/~touch-packages Post to : touch-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp
[Touch-packages] [Bug 794315] Re: lightdm forgets to source /etc/profile and ~/.profile
On 2015-03-22 20:02, seeker5528 wrote: Is it a prerequisite? Maybe a bad choice of words. It was done in the past so there is a strong argument that is should continue. Right. If it is Ubuntu policy that '~/.profile' get sourced by the display manger, ... Well, I'm not the one who should make statements about the policy, but I made a couple of remarks below. https://help.ubuntu.com/community/EnvironmentVariables Gives the expectation it should work... Actually I have edited that page, and in connection with doing so I started a thread on the topic at the ubuntu-devel mailing list. https://lists.ubuntu.com/archives/ubuntu-devel/2013-December/037899.html But right after they link to http://userbase.kde.org/Session_Environment_Variables/en Which does not say anything about '/etc/profile' or '~/.profile'. So should I take it that I should not expect kdm to source these files or is the sole purpose of the link to give you additional KDE specific options? And I don't see on the community documentation page anyting about '~/.xsessionrc' (Debian) or '~/.xprofile' (Redhat). Well, the page is part of an Ubuntu resource, and not an everything Linux ditto. It's also a wiki page, so you are free to edit it. ;) OTOH, I doubt that adding info about all configuration file variants in every Linux distro would be an improvement... More discussion there than should be had in a bug report for lightdm, presenting them here so the questions are out there for future thought. Since this bug report was closed long ago, it's unlikely that this is a proper place for your thoughts. I would recommend that you bring the matter up on the ubuntu-devel or ubuntu-devel-discuss mailing list. -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to lightdm in Ubuntu. https://bugs.launchpad.net/bugs/794315 Title: lightdm forgets to source /etc/profile and ~/.profile Status in Light Display Manager: Fix Released Status in lightdm package in Ubuntu: Fix Released Status in lightdm package in Debian: Confirmed Bug description: Binary package hint: lightdm /etc/gdm/Xsession had this code: # 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 so that, for example, ~/bin gets added to the path (by the default ~/.profile), and any user-customized environment setup gets run. After switching from gdm to lightdm, this no longer happens. This is going to be a regression now that lightdm is becoming the default display manager. ProblemType: Bug DistroRelease: Ubuntu 11.10 Package: lightdm 0.3.7-0ubuntu1 ProcVersionSignature: Ubuntu 2.6.39-3.10-generic 2.6.39 Uname: Linux 2.6.39-3-generic x86_64 NonfreeKernelModules: openafs Architecture: amd64 Date: Tue Jun 7 19:27:11 2011 EcryptfsInUse: Yes InstallationMedia: Ubuntu 11.04 Natty Narwhal - Alpha amd64 (20101202) ProcEnviron: LANGUAGE=en_US:en PATH=(custom, no user) LANG=en_US.utf8 LC_MESSAGES=en_US.utf8 SHELL=/bin/bash SourcePackage: lightdm UpgradeStatus: No upgrade log present (probably fresh install) To manage notifications about this bug go to: https://bugs.launchpad.net/lightdm/+bug/794315/+subscriptions -- Mailing list: https://launchpad.net/~touch-packages Post to : touch-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp
[Touch-packages] [Bug 794315] Re: lightdm forgets to source /etc/profile and ~/.profile
Is it a prerequisite? It was done in the past so there is a strong argument that is should continue. If it is Ubuntu policy that '~/.profile' get sourced by the display manger, all the display managers should do it and the sample file should not indicate it is intended for the login shell. Which indicates to me I should not expect '~/.profile' to get sourced if a display manager is handling the login or if I am starting one shell from another shell. If it is not policy then various places where these things are documented should give more complete information on when you should expect it to work. https://help.ubuntu.com/community/EnvironmentVariables Gives the expectation it should work... But right after they link to http://userbase.kde.org/Session_Environment_Variables/en Which does not say anything about '/etc/profile' or '~/.profile'. So should I take it that I should not expect kdm to source these files or is the sole purpose of the link to give you additional KDE specific options? And I don't see on the community documentation page anyting about '~/.xsessionrc' (Debian) or '~/.xprofile' (Redhat). Should we expect one or both of these to work and should we expect them to continue working in the future with Mir and Wayland? More discussion there than should be had in a bug report for lightdm, presenting them here so the questions are out there for future thought. -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to lightdm in Ubuntu. https://bugs.launchpad.net/bugs/794315 Title: lightdm forgets to source /etc/profile and ~/.profile Status in Light Display Manager: Fix Released Status in lightdm package in Ubuntu: Fix Released Status in lightdm package in Debian: Confirmed Bug description: Binary package hint: lightdm /etc/gdm/Xsession had this code: # 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 so that, for example, ~/bin gets added to the path (by the default ~/.profile), and any user-customized environment setup gets run. After switching from gdm to lightdm, this no longer happens. This is going to be a regression now that lightdm is becoming the default display manager. ProblemType: Bug DistroRelease: Ubuntu 11.10 Package: lightdm 0.3.7-0ubuntu1 ProcVersionSignature: Ubuntu 2.6.39-3.10-generic 2.6.39 Uname: Linux 2.6.39-3-generic x86_64 NonfreeKernelModules: openafs Architecture: amd64 Date: Tue Jun 7 19:27:11 2011 EcryptfsInUse: Yes InstallationMedia: Ubuntu 11.04 Natty Narwhal - Alpha amd64 (20101202) ProcEnviron: LANGUAGE=en_US:en PATH=(custom, no user) LANG=en_US.utf8 LC_MESSAGES=en_US.utf8 SHELL=/bin/bash SourcePackage: lightdm UpgradeStatus: No upgrade log present (probably fresh install) To manage notifications about this bug go to: https://bugs.launchpad.net/lightdm/+bug/794315/+subscriptions -- Mailing list: https://launchpad.net/~touch-packages Post to : touch-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp
[Touch-packages] [Bug 794315] Re: lightdm forgets to source /etc/profile and ~/.profile
Somebody posted a similar issue in the Debian mailing list recently, the recommendation there was to use '~/.xsessionrc'. -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to lightdm in Ubuntu. https://bugs.launchpad.net/bugs/794315 Title: lightdm forgets to source /etc/profile and ~/.profile Status in Light Display Manager: Fix Released Status in lightdm package in Ubuntu: Fix Released Status in lightdm package in Debian: Confirmed Bug description: Binary package hint: lightdm /etc/gdm/Xsession had this code: # 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 so that, for example, ~/bin gets added to the path (by the default ~/.profile), and any user-customized environment setup gets run. After switching from gdm to lightdm, this no longer happens. This is going to be a regression now that lightdm is becoming the default display manager. ProblemType: Bug DistroRelease: Ubuntu 11.10 Package: lightdm 0.3.7-0ubuntu1 ProcVersionSignature: Ubuntu 2.6.39-3.10-generic 2.6.39 Uname: Linux 2.6.39-3-generic x86_64 NonfreeKernelModules: openafs Architecture: amd64 Date: Tue Jun 7 19:27:11 2011 EcryptfsInUse: Yes InstallationMedia: Ubuntu 11.04 Natty Narwhal - Alpha amd64 (20101202) ProcEnviron: LANGUAGE=en_US:en PATH=(custom, no user) LANG=en_US.utf8 LC_MESSAGES=en_US.utf8 SHELL=/bin/bash SourcePackage: lightdm UpgradeStatus: No upgrade log present (probably fresh install) To manage notifications about this bug go to: https://bugs.launchpad.net/lightdm/+bug/794315/+subscriptions -- Mailing list: https://launchpad.net/~touch-packages Post to : touch-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp
[Touch-packages] [Bug 794315] Re: lightdm forgets to source /etc/profile and ~/.profile
** Changed in: lightdm (Debian) Status: Won't Fix = Confirmed -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to lightdm in Ubuntu. https://bugs.launchpad.net/bugs/794315 Title: lightdm forgets to source /etc/profile and ~/.profile Status in Light Display Manager: Fix Released Status in lightdm package in Ubuntu: Fix Released Status in lightdm package in Debian: Confirmed Bug description: Binary package hint: lightdm /etc/gdm/Xsession had this code: # 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 so that, for example, ~/bin gets added to the path (by the default ~/.profile), and any user-customized environment setup gets run. After switching from gdm to lightdm, this no longer happens. This is going to be a regression now that lightdm is becoming the default display manager. ProblemType: Bug DistroRelease: Ubuntu 11.10 Package: lightdm 0.3.7-0ubuntu1 ProcVersionSignature: Ubuntu 2.6.39-3.10-generic 2.6.39 Uname: Linux 2.6.39-3-generic x86_64 NonfreeKernelModules: openafs Architecture: amd64 Date: Tue Jun 7 19:27:11 2011 EcryptfsInUse: Yes InstallationMedia: Ubuntu 11.04 Natty Narwhal - Alpha amd64 (20101202) ProcEnviron: LANGUAGE=en_US:en PATH=(custom, no user) LANG=en_US.utf8 LC_MESSAGES=en_US.utf8 SHELL=/bin/bash SourcePackage: lightdm UpgradeStatus: No upgrade log present (probably fresh install) To manage notifications about this bug go to: https://bugs.launchpad.net/lightdm/+bug/794315/+subscriptions -- Mailing list: https://launchpad.net/~touch-packages Post to : touch-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp
[Touch-packages] [Bug 794315] Re: lightdm forgets to source /etc/profile and ~/.profile
Note that the profile is sourced at the top of /usr/sbin/lightdm- session, and the bottom of lightdm-session runs everything in /etc/X11/Xsession.d. The final file is 99x11-common_start, which is exec $STARTUP. Thus this never returns to the exec in lightdm-session. Since 99upstart (from upstart package, so pretty much always present) smashes STARTUP to init --user, the X session is actually started by upstart-- which does not pass through the environment so carefully established in lightdm-session (see Job environment in init(5)). Consensus on askubuntu ( http://askubuntu.com/search?q=profile.d ) seems to be a graphical login shell is not a login shell, which basically requires the treatment of every new terminal window as a new login shell if there's to be a rational environment in there. If this was ever considered a bug, it appears to have reverted now. I've been digging through this specifically on Xubuntu 14.04, but again, the players involved seem to be pretty deep in the stack. -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to lightdm in Ubuntu. https://bugs.launchpad.net/bugs/794315 Title: lightdm forgets to source /etc/profile and ~/.profile Status in Light Display Manager: Fix Released Status in “lightdm” package in Ubuntu: Fix Released Status in “lightdm” package in Debian: Won't Fix Bug description: Binary package hint: lightdm /etc/gdm/Xsession had this code: # 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 so that, for example, ~/bin gets added to the path (by the default ~/.profile), and any user-customized environment setup gets run. After switching from gdm to lightdm, this no longer happens. This is going to be a regression now that lightdm is becoming the default display manager. ProblemType: Bug DistroRelease: Ubuntu 11.10 Package: lightdm 0.3.7-0ubuntu1 ProcVersionSignature: Ubuntu 2.6.39-3.10-generic 2.6.39 Uname: Linux 2.6.39-3-generic x86_64 NonfreeKernelModules: openafs Architecture: amd64 Date: Tue Jun 7 19:27:11 2011 EcryptfsInUse: Yes InstallationMedia: Ubuntu 11.04 Natty Narwhal - Alpha amd64 (20101202) ProcEnviron: LANGUAGE=en_US:en PATH=(custom, no user) LANG=en_US.utf8 LC_MESSAGES=en_US.utf8 SHELL=/bin/bash SourcePackage: lightdm UpgradeStatus: No upgrade log present (probably fresh install) To manage notifications about this bug go to: https://bugs.launchpad.net/lightdm/+bug/794315/+subscriptions -- Mailing list: https://launchpad.net/~touch-packages Post to : touch-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp
[Touch-packages] [Bug 794315] Re: lightdm forgets to source /etc/profile and ~/.profile
** Bug watch added: Debian Bug tracker #636108 http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=636108 ** Also affects: lightdm (Debian) via http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=636108 Importance: Unknown Status: Unknown -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to lightdm in Ubuntu. https://bugs.launchpad.net/bugs/794315 Title: lightdm forgets to source /etc/profile and ~/.profile Status in Light Display Manager: Fix Released Status in “lightdm” package in Ubuntu: Fix Released Status in “lightdm” package in Debian: Unknown Bug description: Binary package hint: lightdm /etc/gdm/Xsession had this code: # 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 so that, for example, ~/bin gets added to the path (by the default ~/.profile), and any user-customized environment setup gets run. After switching from gdm to lightdm, this no longer happens. This is going to be a regression now that lightdm is becoming the default display manager. ProblemType: Bug DistroRelease: Ubuntu 11.10 Package: lightdm 0.3.7-0ubuntu1 ProcVersionSignature: Ubuntu 2.6.39-3.10-generic 2.6.39 Uname: Linux 2.6.39-3-generic x86_64 NonfreeKernelModules: openafs Architecture: amd64 Date: Tue Jun 7 19:27:11 2011 EcryptfsInUse: Yes InstallationMedia: Ubuntu 11.04 Natty Narwhal - Alpha amd64 (20101202) ProcEnviron: LANGUAGE=en_US:en PATH=(custom, no user) LANG=en_US.utf8 LC_MESSAGES=en_US.utf8 SHELL=/bin/bash SourcePackage: lightdm UpgradeStatus: No upgrade log present (probably fresh install) To manage notifications about this bug go to: https://bugs.launchpad.net/lightdm/+bug/794315/+subscriptions -- Mailing list: https://launchpad.net/~touch-packages Post to : touch-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp
[Touch-packages] [Bug 794315] Re: lightdm forgets to source /etc/profile and ~/.profile
** Changed in: lightdm (Debian) Status: Unknown = Won't Fix -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to lightdm in Ubuntu. https://bugs.launchpad.net/bugs/794315 Title: lightdm forgets to source /etc/profile and ~/.profile Status in Light Display Manager: Fix Released Status in “lightdm” package in Ubuntu: Fix Released Status in “lightdm” package in Debian: Won't Fix Bug description: Binary package hint: lightdm /etc/gdm/Xsession had this code: # 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 so that, for example, ~/bin gets added to the path (by the default ~/.profile), and any user-customized environment setup gets run. After switching from gdm to lightdm, this no longer happens. This is going to be a regression now that lightdm is becoming the default display manager. ProblemType: Bug DistroRelease: Ubuntu 11.10 Package: lightdm 0.3.7-0ubuntu1 ProcVersionSignature: Ubuntu 2.6.39-3.10-generic 2.6.39 Uname: Linux 2.6.39-3-generic x86_64 NonfreeKernelModules: openafs Architecture: amd64 Date: Tue Jun 7 19:27:11 2011 EcryptfsInUse: Yes InstallationMedia: Ubuntu 11.04 Natty Narwhal - Alpha amd64 (20101202) ProcEnviron: LANGUAGE=en_US:en PATH=(custom, no user) LANG=en_US.utf8 LC_MESSAGES=en_US.utf8 SHELL=/bin/bash SourcePackage: lightdm UpgradeStatus: No upgrade log present (probably fresh install) To manage notifications about this bug go to: https://bugs.launchpad.net/lightdm/+bug/794315/+subscriptions -- Mailing list: https://launchpad.net/~touch-packages Post to : touch-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp