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 ;-) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1675925 Title: gpg-agent service sets wrong SSH_AUTH_SOCK value To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gnupg2/+bug/1675925/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs