gpg-agent only works when started in terminal

Antony Prince antony at blazrsoft.com
Mon Sep 12 20:02:55 CEST 2016


On 09/09/2016 05:55 AM, Stephan Beck wrote:
> AFAIK, this means that the agent is not started when you "invoke gpg2
> normally" (directly from the command line?), so the environment may be
> incorrectly set. Or is there more than one agent instance running?

When gpg2 is called, the agent appears to start normally.

antony at 050415:~$ sudo ps -aux | grep gpg-agent | grep -v grep

antony    1717  0.0  0.0 174064   808 ?        Ss   13:33   0:00
/usr/local/bin/gpg-agent

> What does a
> gpg-agent --daemon --write-env-file
> output in terms of GPG-AGENT_INFO?
> Is the correct socket being used?

antony at 050415:~$ gpg-agent --daemon --write-env-file
gpg-agent[3176]: WARNING: "--write-env-file" is an obsolete option - it
has no effect
gpg-agent[3177]: gpg-agent (GnuPG) 2.1.15 started

antony at 050415:~$ echo $GPG_AGENT_INFO
/run/user/1000/keyring-Hs60Gh/gpg:0:1

> And you symlinked /usr/bin/pinentry and the pinentry you might actually use?

antony at 050415:~$ ls -la /usr/bin/pinentry
lrwxrwxrwx 1 root root 26 Sep 12 13:51 /usr/bin/pinentry ->
/etc/alternatives/pinentry
antony at 050415:~$ ls -la /usr/local/bin/pinentry
lrwxrwxrwx 1 root root 26 Sep 12 13:51 /usr/local/bin/pinentry ->
/etc/alternatives/pinentry
antony at 050415:~$ /etc/alternatives/pinentry
OK Your orders please

-- 

Antony Prince

Key ID: 0xAF3D4087301B1B19
Fingerprint: 591F F17F 7A4A A8D0 F659  C482 AF3D 4087 301B 1B19
URL:
http://pool.sks-keyservers.net/pks/lookup?op=get&search=0xAF3D4087301B1B19

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: OpenPGP digital signature
URL: </pipermail/attachments/20160912/75020a0b/attachment-0001.sig>


More information about the Gnupg-users mailing list