gpg-agent: Show PID/command line of the requesting process

Yuri D'Elia wavexx at
Thu Apr 16 12:54:10 CEST 2015

On 04/16/2015 11:48 AM, Werner Koch wrote:
> On Tue, 23 Dec 2014 18:56, wavexx at said:
>> When using gpg-agent in daemon mode it's not always obvious which
>> process is requesting authorization for unlocking a key. The agent
>> should always show the PID/command of the requester.
> That is probably nice for developers but most users don't known about
> processes working in the background.  In most cases they will see "gpg"
> with some cryptic options and don't understand what this is about.

Yes, true. However users that don't know about this will also ignore the
key being unlocked as well. Pinentry could easily have a 'details'
section showing more details, such as those.

Not to say that it's not cryptic. The problem that even PID/command is
sometimes not enough to understand for a developer as to why a key is
being unlocked.

But it's a start, and it's arguably something that doesn't come from the
program itself.

More information about the Gnupg-devel mailing list