Package: src:zsh
Version: 5.9-5

Please add an /etc/zsh/zlogin.d directory and add something like

if [ -d /etc/zsh/zlogin.d ]; then
  for i in /etc/zsh/zlogin.d/*.sh; do
    if [ -r $i ]; then
      . $i
    fi
  done
  unset i
fi

Bash does this in /etc/profile, so that other packages can put
some init scripts here.

Background:
1. For wayland, gnome-session use $SHELL to restart.
https://salsa.debian.org/gnome-team/gnome-session/-/commit/5fee64f74925291f211f289dcfb3f1cf522c1546
2. im-config contains a file: /etc/profile.d/im-config_wayland.sh
to start input method in wayland env.
3. If zsh is set to login shell, the input method won't start,
since zsh doesn't use /etc/profile.

Reply via email to