#1057627 zsh: add /etc/zsh/zlogin.d directory

#1057627#5
Date:
2023-12-06 04:48:51 UTC
From:
To:
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.