Hi, I've since figured out how to get zsh to run the activateDesktopProfiles script natively -> attached is the improved with_bugfix_zlogin version that doesn't detour through bash.
Regarding modularization of the on-logon script: tcsh/csh on-logon script is now also modularized, that leaves /etc/zlogin and /etc/profile as the only 2 shell on-logon scripts that aren't currently modularized. -- Cheers, cobaco (aka Bart Cornelis)
# /etc/zsh/zlogin: system-wide .zlogin file for zsh(1). # # This file is sourced only for login shells. It # should contain commands that should be executed only # in login shells. It should be used to set the terminal # type and run a series of external commands (fortune, # msgs, from, etc.) # # Global Order: zshenv, zprofile, zshrc, zlogin # This fixes the desktop-profiles corner-case where a graphical client is # started through an ssh -X session (in which the Xsession.d scripts aren't # run, so we need to make sure the profiles are activated according to the # specified settings at login). # DESKTOP_PROFILES_SCRIPT="/etc/X11/Xsession.d/20desktop-profiles_activateDesktopProfiles" if (test -f $DESKTOP_PROFILES_SCRIPT); then # testing SSH_CLIENT as the woody ssh doesn't set SSH_CONNECTION # also testing SSH_CONNECTION as the current ssh manpage no longer mentions # SSH_CLIENT, so it appears that variable is being phased out. if ( (test -n "${SSH_CLIENT}") || (test -n "${SSH_CONNECTION}") ) && \ (test -n "${DISPLAY}"); then # zsh needs the shwordsplit option set otherwise activateDesktopProfiles # script wil error out if (setopt | grep shwordsplit); then source $DESKTOP_PROFILES_SCRIPT; else setopt shwordsplit; source $DESKTOP_PROFILES_SCRIPT; unsetopt shwordsplit; fi; fi; fi;
pgp3LFJrg2DiD.pgp
Description: PGP signature