FS#51341 - [gdm] gnome-shell 3.22 on wayland doesn't use $HOME/.profile

Attached to Project: Arch Linux
Opened by Amit Mendapara (cristatus) - Wednesday, 12 October 2016, 10:51 GMT
Last edited by Jan Alexander Steffens (heftig) - Tuesday, 18 October 2016, 14:33 GMT
Task Type Bug Report
Category Upstream Bugs
Status Closed
Assigned To Jan de Groot (JGC)
Jan Alexander Steffens (heftig)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 4
Private No

Details

Description:

Just upgraded my Arch installation to gnome-shell 3.22 and now wayland is the default session. However, it doesn't use $HOME/.profile. It works fine with xorg server session.


Additional info:
* gnome-shell 3.22.1+2+g5a08886-1
* nautilus 3.22.0.1+22+gd72934b-1
* wayland 1.12.0-1

Steps to reproduce:

* set some environment in $HOME/.profile
* login with wayland session
* environment variable is not set (means $HOME/.profile was not read)
* login with xorg session
* environment variable is set (means $HOME/.profile was read)
This task depends upon

Closed by  Jan Alexander Steffens (heftig)
Tuesday, 18 October 2016, 14:33 GMT
Reason for closing:  Upstream
Comment by Amit Mendapara (cristatus) - Wednesday, 12 October 2016, 10:54 GMT Comment by Mark Blakeney (bulletmark) - Thursday, 13 October 2016, 06:08 GMT
I also discovered this after the update and just moved the variable setting I had in ~/.profile (e.g. add ~/bin to PATH) to ~/.bashrc.
Comment by Amit Mendapara (cristatus) - Thursday, 13 October 2016, 07:11 GMT
I want the environment vars visible to all apps not just the terminal. It seems, wayland session is not using login shell. I have moved my environment settings to $HOME/.pam_environment as mentioned here https://wiki.archlinux.org/index.php/environment_variables. However, it's just a plain-text file so we can't set environment conditionally.

IMO, wayland session should at least source $HOME/.profile if not $HOME/.bash_profile.
Comment by Jan Alexander Steffens (heftig) - Tuesday, 18 October 2016, 14:33 GMT
Not much to do here unless we want to make a quite sizable patch to GDM or gnome-session.

Loading...