[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 1386760] [NEW] Upstart quashes Xsession.d environment
Public bug reported: upstart owns (dpkg -S) a file /etc/X11/Xsession.d/99upstart which changes the STARTUP environment variable to init --user. This makes the actual X session startup in 99x11-common_start go through upstart. Since the environment variables used in calling init do not get passed through to the actual upstart job, this squashes the environment customization done in Xsession.d and before. For instance, lightdm's session wrapper processes /etc/profile; 40x11-common_xsessionrc processes .xsessionrc, but these customizations do not make it into the user environment. (This is a very easy test case: put TESTVAR=1 in .xsessionrc, log out and back in, echo $TESTVAR. Should display 1, instead displays empty.) Note this bug is not upstart doesn't pass through the environment in general, but upstart specifically interferes with Xsession startup such that the environment is not passed through. It's essentially an interaction between upstart and x11-common. This seems to be the root of the recurrence of bug #794315 and I have to wonder about bug #1259877. Tested on Xubuntu 14.04.1 LTS (updates channel enabled), upstart 1.12.1-0ubuntu4.2, x11-common 1:7.7+1ubuntu8 ** Affects: upstart (Ubuntu) Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to upstart in Ubuntu. https://bugs.launchpad.net/bugs/1386760 Title: Upstart quashes Xsession.d environment Status in “upstart” package in Ubuntu: New Bug description: upstart owns (dpkg -S) a file /etc/X11/Xsession.d/99upstart which changes the STARTUP environment variable to init --user. This makes the actual X session startup in 99x11-common_start go through upstart. Since the environment variables used in calling init do not get passed through to the actual upstart job, this squashes the environment customization done in Xsession.d and before. For instance, lightdm's session wrapper processes /etc/profile; 40x11-common_xsessionrc processes .xsessionrc, but these customizations do not make it into the user environment. (This is a very easy test case: put TESTVAR=1 in .xsessionrc, log out and back in, echo $TESTVAR. Should display 1, instead displays empty.) Note this bug is not upstart doesn't pass through the environment in general, but upstart specifically interferes with Xsession startup such that the environment is not passed through. It's essentially an interaction between upstart and x11-common. This seems to be the root of the recurrence of bug #794315 and I have to wonder about bug #1259877. Tested on Xubuntu 14.04.1 LTS (updates channel enabled), upstart 1.12.1-0ubuntu4.2, x11-common 1:7.7+1ubuntu8 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/upstart/+bug/1386760/+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 1386760] Re: Upstart quashes Xsession.d environment
PEBKAC. Forgot I need to export (actually to the environment) since it needs to go out to child processes regardless of the path that takes. Needed coffee, I guess. ** Changed in: upstart (Ubuntu) Status: New = Invalid -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to upstart in Ubuntu. https://bugs.launchpad.net/bugs/1386760 Title: Upstart quashes Xsession.d environment Status in “upstart” package in Ubuntu: Invalid Bug description: upstart owns (dpkg -S) a file /etc/X11/Xsession.d/99upstart which changes the STARTUP environment variable to init --user. This makes the actual X session startup in 99x11-common_start go through upstart. Since the environment variables used in calling init do not get passed through to the actual upstart job, this squashes the environment customization done in Xsession.d and before. For instance, lightdm's session wrapper processes /etc/profile; 40x11-common_xsessionrc processes .xsessionrc, but these customizations do not make it into the user environment. (This is a very easy test case: put TESTVAR=1 in .xsessionrc, log out and back in, echo $TESTVAR. Should display 1, instead displays empty.) Note this bug is not upstart doesn't pass through the environment in general, but upstart specifically interferes with Xsession startup such that the environment is not passed through. It's essentially an interaction between upstart and x11-common. This seems to be the root of the recurrence of bug #794315 and I have to wonder about bug #1259877. Tested on Xubuntu 14.04.1 LTS (updates channel enabled), upstart 1.12.1-0ubuntu4.2, x11-common 1:7.7+1ubuntu8 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/upstart/+bug/1386760/+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