Bug#355923: A simpler way to avoid clobbering the TMPDIR environment variable
On Wed, Aug 2, 2006 at 23:58:13 +0100, Sam Morris wrote: Could someone *please* look into making this very minor improvement to the /etc/X11/Xsession.d/90x11-common_ssh-agent file? I think I'll go with this: --- a/debian/local/Xsession.d/90x11-common_ssh-agent +++ b/debian/local/Xsession.d/90x11-common_ssh-agent @@ -17,8 +17,8 @@ if grep -qs ^use-ssh-agent $OPTIONFILE; then fi fi if [ -n $STARTSSH ]; then - STARTUP=$SSHAGENT $SSHAGENTARGS $STARTUP + STARTUP=$SSHAGENT $SSHAGENTARGS ${TMPDIR:+env TMPDIR=$TMPDIR} $STARTUP fi # vim:set ai et sts=2 sw=2 tw=80: Sounds sane? Cheers, Julien -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Bug#355923: A simpler way to avoid clobbering the TMPDIR environment variable
On Sat, 2008-08-02 at 19:35 +0200, Julien Cristau wrote: On Wed, Aug 2, 2006 at 23:58:13 +0100, Sam Morris wrote: Could someone *please* look into making this very minor improvement to the /etc/X11/Xsession.d/90x11-common_ssh-agent file? I think I'll go with this: --- a/debian/local/Xsession.d/90x11-common_ssh-agent +++ b/debian/local/Xsession.d/90x11-common_ssh-agent @@ -17,8 +17,8 @@ if grep -qs ^use-ssh-agent $OPTIONFILE; then fi fi if [ -n $STARTSSH ]; then - STARTUP=$SSHAGENT $SSHAGENTARGS $STARTUP + STARTUP=$SSHAGENT $SSHAGENTARGS ${TMPDIR:+env TMPDIR=$TMPDIR} $STARTUP fi # vim:set ai et sts=2 sw=2 tw=80: Sounds sane? Neat solution--looks good to me. :) Cheers, Julien -- Sam Morris http://robots.org.uk/ PGP key id 1024D/5EA01078 3412 EA18 1277 354B 991B C869 B219 7FDB 5EA0 1078 signature.asc Description: This is a digitally signed message part
Bug#355923: A simpler way to avoid clobbering the TMPDIR environment variable
Like this: if [ -n $STARTSSH ]; then eval $($SSHAGENT $SSHAGENTARGS -s) fi Could someone *please* look into making this very minor improvement to the /etc/X11/Xsession.d/90x11-common_ssh-agent file? -- Sam Morris http://robots.org.uk/ PGP key id 1024D/5EA01078 3412 EA18 1277 354B 991B C869 B219 7FDB 5EA0 1078 signature.asc Description: This is a digitally signed message part