Red Hat Bugzilla – Bug 1315112
gpg-agent doesn't terminate when session is closing
Last modified: 2016-09-28 18:35:51 EDT
Description of problem:
When logging out, gpg-agent is not ended. This should break password prompts, especially in a dual X11 + Wayland environment
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. log in into a gnome (+wayland?) session
2. do something to trigger gpg-agent being started, e.g. open a encrypted email in evolution
3. log out
4. go to tty, run
$ loginctl list-sessions
$ loginctl show-session 1
The session you wanted to exit (log out) has State=closing. gpg-agent is not terminated.
gpg-agent should exit with GUI (x11, wayland) session.
Side effects: As long as gpg-agent isn't exited with GUI session, it might (try to) end up using wrong $DISPLAY or $WAYLAND_DISPLAY to show prompts to user. Fails expected.
I am not sure this is an issue with gnupg2 or loginctl/systemd or gnome-session. Feel free to reassign or ask for more info to figure that out.
Not preent on Fedora 25 any more.