summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.gnupg/gpg-agent.conf2
-rwxr-xr-x.gnupg/pinentry-wrapper4
-rw-r--r--README.md1
3 files changed, 4 insertions, 3 deletions
diff --git a/.gnupg/gpg-agent.conf b/.gnupg/gpg-agent.conf
index a6158b7..6d38770 100644
--- a/.gnupg/gpg-agent.conf
+++ b/.gnupg/gpg-agent.conf
@@ -1,4 +1,4 @@
-pinentry-program ~/.gnupg/pinentry-wrapper
+pinentry-program /usr/local/bin/pinentry-wrapper
default-cache-ttl 3600
default-cache-ttl-ssh 3600
diff --git a/.gnupg/pinentry-wrapper b/.gnupg/pinentry-wrapper
index 9964241..f902298 100755
--- a/.gnupg/pinentry-wrapper
+++ b/.gnupg/pinentry-wrapper
@@ -7,8 +7,8 @@
# Fixes the pinentry-tty error https://github.com/neomutt/neomutt/issues/1014
case $PINENTRY_USER_DATA in
- curses)
- exec pinentry-curses "$@"
+ gnome)
+ exec pinentry-gnome3 "$@"
;;
*)
exec pinentry-tty "$@"
diff --git a/README.md b/README.md
index 6d5c90c..150e860 100644
--- a/README.md
+++ b/README.md
@@ -14,6 +14,7 @@ git clone https://git.sr.ht/~a14m/.rc
cd ~/.rc
stow --no-folding .
chmod 0700 ~/.gnupg
+cp ~/.rc/.gnupg/pinentry-wrapper /usr/local/bin/pinentry-wrapper
gpgconf --kill gpg-agent
gpg-connect-agent /bye
git remote set-url origin [email protected]:~a14m/.rc