After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 738665 - GDM doesn't source ~/.profile and friends with GNOME on Wayland session
GDM doesn't source ~/.profile and friends with GNOME on Wayland session
Status: RESOLVED DUPLICATE of bug 736660
Product: gdm
Classification: Core
Component: general
3.16.x
Other Linux
: Normal normal
: ---
Assigned To: GDM maintainers
GDM maintainers
: 757216 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2014-10-17 07:54 UTC by Tassilo Horn
Modified: 2015-10-27 21:16 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Tassilo Horn 2014-10-17 07:54:31 UTC
I just updated to GNOME 3.14.1 on Arch.  With this release, the GNOME on Wayland session works pretty well so I'd like to use that for day-to-day use.  However, in a GNOME on Wayland session my environment isn't set correctly.

I think the problem is that with a normal GNOME session GDM would run /etc/gdm/Xsession which (next to many other things) sources ${HOME}/.profile where I have my general (non-shell specific) environment setup, e.g., I prepend ~/bin to PATH, etc.

With the GNOME on Wayland session the /etc/gdm/Xsession doesn't seem to be run.  At least my ~/.profile isn't sourced.  So I guess there should probably be some /etc/gdm/Waylandsession which does the same as Xsession (without the X-specific stuff).
Comment 1 deedlefake 2015-04-13 16:20:52 UTC
I can confirm that this is still an issue in 3.16.
Comment 2 bigeagle 2015-04-28 13:25:53 UTC
Hi, I'm also experiencing this bug. Not only ${HOME}/.profile is not source, but neither /etc/profile .
Comment 3 Bernhard M. 2015-05-20 06:43:26 UTC
I also can confirm this, using 3.16 on Manjaro 0.8.13rc1 .
Comment 4 Giovanni Campagna 2015-10-09 02:54:36 UTC
Still visibile, and still pretty annoying (no PATH, no EDITOR) in 3.18.0

It would be nice to have a clear design on how to solve this. Indeed, I'm quite surprised it ever worked under X, as .profile was only sourced for gnome-session and its descendants, not for dbus and dbus activated services/apps.
Comment 5 Jasper St. Pierre (not reading bugmail) 2015-10-09 03:17:13 UTC
Yeah, we should probably run a login shell on our own in gdm.
Comment 6 Ray Strode [halfline] 2015-10-09 11:33:43 UTC

*** This bug has been marked as a duplicate of bug 736660 ***
Comment 7 Ray Strode [halfline] 2015-10-09 11:37:24 UTC
see the discussion on bug 736660 . i think the environment variable problem can be solved in a different way than introducing a tower of shell scripts in the login path in wayland.  wayland is our chance to break away from that, and some distros never ran a login shell at login time.

Also, doing it in GDM isn't going to help with systemd user sessions going forward either.
Comment 8 Jasper St. Pierre (not reading bugmail) 2015-10-27 21:16:57 UTC
*** Bug 757216 has been marked as a duplicate of this bug. ***