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@therning.org jabber: magnus@therning.org twitter: magthe http://therning.org/magnus What gets measured, gets done. -- Tom Peters