[pkg-gnupg-maint] Bug#861050: Bug#861050: gnupg-agent: GPG_AGENT_INFO is not set according to /etc/X11/Xsession.d/90gpg-agent

Daniel Kahn Gillmor dkg at fifthhorseman.net
Sat Apr 29 23:58:05 UTC 2017


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



More information about the pkg-gnupg-maint mailing list