Package: gnupg-agent Version: 2.0.26-6 Severity: wishlist Tags: patch Hi, I've started to explore how to use more of systemd's functionality for stretch. Beside starting system service systemd also allows to run units on a per-user basis which is a typical use case for gpg-agent.
I've configured it on my notebooks for a while now: If you install the attached unit file to /usr/lib/systemd/user the unit can be activated on a per-user basis with "systemctl --user enable gpg-agent.service" (Of course, following that GPG_AGENT_INFO still needs to sourced in the user session) Running gpg-agent through a user session has a number of benefits: - systemd ensures it only gets started once per user - it's agnostic of desktop environments and works even it you don't use one (on my private notebook I only start X11 selectively when I want to watch a movie), so running gpg-agent through ~/.xession doesn't work for me - gpg-agent is managed consistently with other system services (e.g. it shows up in "systemctl --user list-units", "systemctl status" etc.) Cheers, Moritz
[Unit] Description=GNU privacy guard password agent Before=default.target [Service] Type=forking ExecStart=/usr/bin/gpg-agent --daemon --write-env-file "${HOME}/.gpg-agent-info" [Install] WantedBy=default.target