[Enigmail] Interactions between gpg-agent and enigmail [was: Re: Enigmail on Ubuntu 9.04]

Daniel Kahn Gillmor dkg at fifthhorseman.net
Tue May 5 08:31:37 PDT 2009


On 05/05/2009 11:19 AM, Patrick Brunschwig wrote:
> I hate replying to myself, but I forgot one thing here: users are free
> to disable gpg-agent (or seahorse-agent), therefore removing the
> corresponding options from Enigmail in Ubuntu is a not a clever thing to do.

Would it be possible for enigmail to detect whether or not the gpg-agent
is running?  On GNU/Linux at least, a simple examination of the
$GPG_AGENT_INFO environment variable should be sufficient.

According to gpg2(1):

>        GPG_AGENT_INFO
>               Used  to  locate  the  gpg-agent.  The value consists of 3 colon
>               delimited fields: The first is  the  path  to  the  Unix  Domain
>               Socket,  the  second  the  PID of the gpg-agent and the protocol
>               version which should be set to 1. When starting the gpg-agent as
>               described in its documentation, this variable is set to the cor‐
>               rect value. The option --gpg-agent-info can be used to  override
>               it.

Maybe if enigmail detects that the agent is running, it could alter the
password caching preferences display to clarify the situation.

	--dkg

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 890 bytes
Desc: OpenPGP digital signature
URL: <http://www.mozdev.org/pipermail/enigmail/attachments/20090505/a5962010/attachment.bin>


More information about the Enigmail mailing list