how to improve tools that test for $GPG_AGENT_INFO

Werner Koch wk at
Thu Mar 19 12:18:20 CET 2015

On Wed, 18 Mar 2015 20:11, dgouttegattat at said:

> Another possibility (which still requires to spawn a new process)

I don't think that there is a way to avoid this.

> If "gpg-agent --use-standard-socket-p" returns 0, then you know you
> can use the agent even if there is no GPG_AGENT_INFO in the

(That is what gpg uses internally to check whether gpg-agent has been
 configured to use a standard socket and works for 2.0 and 2.1.)

I think that is the best option.



Die Gedanken sind frei.  Ausnahmen regelt ein Bundesgesetz.

More information about the Gnupg-devel mailing list