gpg: set pinentry-mode to loopback
authorAmin Bandali <bandali@gnu.org>
Tue, 19 Oct 2021 03:40:23 +0000 (23:40 -0400)
committerAmin Bandali <bandali@gnu.org>
Tue, 19 Oct 2021 03:40:23 +0000 (23:40 -0400)
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.

.gnupg/gpg-agent.conf
.gnupg/gpg.conf [new file with mode: 0644]

index ac7ad2c..4905b0e 100644 (file)
@@ -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 (file)
index 0000000..065d80c
--- /dev/null
@@ -0,0 +1 @@
+pinentry-mode loopback