My first attempt to fix this involved trying to move gpg-agent invocation from upstart to systemd --user. I got that to work by creating:
~/.config/upstart/gpg-agent.override (manual)
~/.config/systemd/user/default.target.wants/gpg-agent.service -> /usr/lib/systemd/user/gpg-agent.service
~/.config/systemd/user/gpg-agent.service.d/override.conf ([Unit]
Before=graphical-session-pre.target)
That correctly started the gpg-agent service, but the environment variables were not visible within a terminal started from gnome-shell. Somehow upstart seems to be the only way for setting env vars, the systemd user service unit does not work as intended. Upstart needs to die. Fast ;-)
My first attempt to fix this involved trying to move gpg-agent invocation from upstart to systemd --user. I got that to work by creating: upstart/ gpg-agent. override (manual) systemd/ user/default. target. wants/gpg- agent.service -> /usr/lib/ systemd/ user/gpg- agent.service systemd/ user/gpg- agent.service. d/override. conf ([Unit] graphical- session- pre.target)
~/.config/
~/.config/
~/.config/
Before=
That correctly started the gpg-agent service, but the environment variables were not visible within a terminal started from gnome-shell. Somehow upstart seems to be the only way for setting env vars, the systemd user service unit does not work as intended. Upstart needs to die. Fast ;-)