On Fri 2017-04-28 18:09:52 +0200, Marek Straka wrote:
> I have adapted script /etc/X11/Xsession.d/90gpg-agent to:
>
> agent_sock=$(gpgconf --list-dirs agent-socket)
> export GPG_AGENT_INFO2=${agent_sock}:0:1
> if [ -n "$(gpgconf --list-options gpg-agent | \
>       awk -F: '/^enable-ssh-support:/{ print $10 }')" ]; then
>     export SSH_AUTH_SOCK=$(gpgconf --list-dirs agent-ssh-socket)
> fi
>
> ...and after Xsession starts
>
> :~$ echo $GPG_AGENT_INFO2
> /run/user/1000/gnupg/S.gpg-agent:0:1

You seem to be saying that you're only changing GPG_AGENT_INFO to
GPG_AGENT_INFO2 and that works for you.  is that correct?

is anything unsetting GPG_AGENT_INFO anywhere in your startup scripts,
either in Xsession.d, or in your homedir?

       --dkg

Reply via email to