Thanks for your report! On 2021-02-19 18:34, Yao Wei (魏銘廷) wrote:
When using wayland, /etc/profile.d/im-config_wayland.sh is used to execute script /etc/X11/Xsession.d/70im-config_launch , but if the user sets /usr/bin/zsh as login shell, it uses /etc/zsh/zprofile instead of /etc/profile, and in turn scripts under /etc/profile.d are not executed.
I'm guilty of putting the hook script in /etc/profile.d, and have to admit that I didn't think of the Wayland + zsh combo. One reason for the choice of location was that im-config needs to check a couple of environment variables during the configuration.
I don't see any obvious generic solution offhand. Ideas are most welcome.
My workaround is to add `export SHELL="/usr/bin/zsh"` in user's ~/.profile, and the shell in terminal windows under the user is zsh while using bash as login shell.
I looked around a bit, and putting emulate sh -c 'source /etc/profile' in /etc/zsh/zprofile is often mentioned. -- Gunnar Hjalmarsson https://launchpad.net/~gunnarhj
Attachment:
OpenPGP_signature
Description: OpenPGP digital signature