2019-11-08 (Friday), nixos1@discoursemail.com (Doron Behar via NixOS Discourse):
If I run
gpg --decrypt ...
and thenpkill gpg-agent
I need
to reenter my password on the nextgpg --decrypt ...
-
everything is fine.
How do you run the gpg-agent
? Do have gpg launch it on demand
or are you using socket activation?
If I login to a certain TTY and run a
gpg --decrypt
command
and thenstartx
, I can’t make the agent forget my password.
Even if I kill it fromhtop
it doesn’t ask for a password.
What pinentry program do you use (grep ^pinentry-program ~/.gnupg/gpg-agent.conf
)? When the agent loses track of the
session you’re on it may end up spawning the pinentry on a
different terminal, like the one on the console that’s being
assumed by your x session.