Starting gpg-agent from systemd?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



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@xxxxxxxxxxxx   jabber: magnus@xxxxxxxxxxxx
twitter: magthe               http://therning.org/magnus

What gets measured, gets done.
     -- Tom Peters

Attachment: pgp1gcYQHxcQ1.pgp
Description: PGP signature


[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux