[arch-general] Starting gpg-agent from systemd?

Magnus Therning magnus at therning.org
Fri Jun 6 13:14:45 EDT 2014


For the first time ever today, I noticed this little gem of a message
from gpg:

~~~~
gpg: WARNING: The GNOME keyring manager hijacked the GnuPG agent.
gpg: WARNING: GnuPG will not work proberly - please configure that tool to not interfere with the GnuPG system!
~~~~

So I started looking into some nice way of switching to gpg-agent, but
how to start it in a nice way when using Gnome?

The instructions at [^1] are for the shell and for using ~/.xinitrc to
start X.  So neither is very well suited for me as I'm letting GDM log
me in to Gnome without use of ~/.xinitrc and the agent has to be
available also to apps started via Gnome Shell.

I have a feeling this ought to be solvable using systemd but I can't
really see how.  Writing a service for gpg-agent is not that
difficult, and it creates the required environment file without
problems.  But, how do I hook it in to the user login in the right
way?  Who should be wanting my gpg-agent.service, and then load the
generated file using EnvironmentFile=?

All pointers are welcome.

/M

[^1]: https://wiki.archlinux.org/index.php/GnuPG#gpg-agent

-- 
Magnus Therning                      OpenPGP: 0xAB4DFBA4 
email: magnus at therning.org   jabber: magnus at therning.org
twitter: magthe               http://therning.org/magnus

What gets measured, gets done.
     -- Tom Peters
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <http://mailman.archlinux.org/pipermail/arch-general/attachments/20140606/e3b7c7f4/attachment.asc>


More information about the arch-general mailing list