From: Amin Bandali Date: Tue, 19 Oct 2021 03:40:23 +0000 (-0400) Subject: gpg: set pinentry-mode to loopback X-Git-Url: https://git.shemshak.org/~bandali/configs/commitdiff_plain/8c970f6fb3f206aa4645dbe604a2c754b617361f?hp=7b96c45a9474f693ba5bd3a3a28bbbf8b6115267 gpg: set pinentry-mode to loopback this is the missing piece for getting pinentry in minibuffer in emacs, for example in eshell, instead of a 'pop up' pinentry that completely messes everything up. with this in place, don't greatly extend the key cache ttls, since we don't have to worry about our tty emacs being interrupted if we mindlessly stumble into a gpg pinentry. --- diff --git a/.gnupg/gpg-agent.conf b/.gnupg/gpg-agent.conf index ac7ad2c..4905b0e 100644 --- a/.gnupg/gpg-agent.conf +++ b/.gnupg/gpg-agent.conf @@ -1,8 +1,8 @@ -default-cache-ttl 10000000 -max-cache-ttl 10000000 +# default-cache-ttl 10000000 +# max-cache-ttl 10000000 -default-cache-ttl-ssh 43200 -max-cache-ttl-ssh 86400 +# default-cache-ttl-ssh 43200 +# max-cache-ttl-ssh 86400 # pinentry-program /home/bandali/.guix-profile/bin/pinentry-emacs # pinentry-program /usr/bin/pinentry-gtk-2 diff --git a/.gnupg/gpg.conf b/.gnupg/gpg.conf new file mode 100644 index 0000000..065d80c --- /dev/null +++ b/.gnupg/gpg.conf @@ -0,0 +1 @@ +pinentry-mode loopback