GNOME Bugzilla – Bug 768358
User defined shell not correctly set in X, works under wayland
Last modified: 2018-05-24 11:24:47 UTC
Created attachment 330824 [details] gnome-terminal in X session I have changed my login shell using sudo chsh -s /bin/zsh I can verify the changes take affect in /etc/passwd jgarr:x:1000:1000:Justin Garrison:/home/jgarr:/usr/bin/zsh When I login to gnome with X (I'm using Fedora 24) and start gnome-terminal the $SHELL is set to /bin/bash (see attached picture). Without changing anything I can log out and back in to gnome using Wayland and $SHELL is set properly to /bin/zsh
Created attachment 330825 [details] gnome-terminal in wayland session
So it works in Wayland and not in X? Not sure it should be added to the tracker for Wayland bugs then.
You're probably right. I only was trying Wayland to be able to provide feedback in Fedora. I found other Wayland issues (still trying to find reproducible steps). I thought by adding the tag it may help get attention of someone more familiar with wayland and why this would happen.
gnome-terminal does not set SHELL, nor use it in any way; it uses getpwuid to get the user's shell. If SHELL is present in the environment, it's inherited from the session, or set by the shell itself (bash does that). Nor does gnome-terminal make any distinction between X and wayland when launching the child processes; if there is a difference, it's due to other causes, probably the session manager. Trying -> gdm
-- GitLab Migration Automatic Message -- This bug has been migrated to GNOME's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/gdm/issues/263.