On 21/08/17 14:18, Raphael Hertzog wrote: > > I agree it looks like a good solution. Daniel, can you implement this > please? >
Quick amendment to my previous suggestion. At least until this patch (https://git.gnome.org/browse/gnome-session/commit/?id=818266a898b803960ce8dd6d330c1ef6934bba46) lands in gnome-session-bin, we also need to set GSM_SKIP_SSH_AGENT_WORKAROUND to prevent our SSH_AUTH_SOCK from being clobbered. Updated script below. --rufo #!/bin/bash if [ -n "$(gpgconf --list-options gpg-agent | \ awk -F: '/^enable-ssh-support:/{ print $10 }')" ]; then echo SSH_AUTH_SOCK=$(gpgconf --list-dirs agent-ssh-socket) echo GSM_SKIP_SSH_AGENT_WORKAROUND=true fi