On Monday 19 December 2005 15:55, C. Gatzemeier wrote: > Profiles are not active upon logins like ssh -X since the > desktop-profiles script is an xsession.d script.
I haven't been able to find a general solution for this. The only solution I see at the moment is to add a shell snippet to the system-wide on-login script for each shell that sources the profile activation sript for an 'ssh -X logon. The following snippet works for bourn-compatible shells when added to /etc/profile: # 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 source /etc/X11/Xsession.d/20desktop-profiles_activateDesktopProfiles fi; this gives the following todo: - document the bug and proposed solution in desktop-profiles README - file bugs with the respective shells to add an profile.d dir or similar, giving packages a policy-compliant way of adding shell snippets to the systemwide shell-logon script. - wait for filed bugs to be fixed and add the necessary snippets when it becomes possible to do so. -- Cheers, cobaco (aka Bart Cornelis) 1. Encrypted mail preferred (GPG KeyID: 0x86624ABB) 2. Plain-text mail recommended since I move html and double format mails to a low priority folder (they're mainly spam)
pgpVGhH1ibGIp.pgp
Description: PGP signature