diff options
| author | Ahmed Abdelhalim <[email protected]> | 2023-03-17 00:13:16 +0100 |
|---|---|---|
| committer | Ahmed Abdelhalim <[email protected]> | 2023-03-17 00:37:45 +0100 |
| commit | bdc375a3d1082355806c86d3b8c74df95e73f5fa (patch) | |
| tree | fd0bc10ad286942f7d882f2e751bd0f104bcdf3a /.gnupg/pinentry-wrapper | |
| parent | 4bd21aab50c8aac338a66be6d74e76e7aeb5a616 (diff) | |
Use pinentry-wrapper script to allow alternating
Using PINENTRY_USER_DATA to alternate between tty and curses
This allow mutt/neomutt to work with decrypting the emails
Because the tty doesn't work with mutt
Diffstat (limited to '.gnupg/pinentry-wrapper')
| -rwxr-xr-x | .gnupg/pinentry-wrapper | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/.gnupg/pinentry-wrapper b/.gnupg/pinentry-wrapper new file mode 100755 index 0000000..229ad94 --- /dev/null +++ b/.gnupg/pinentry-wrapper @@ -0,0 +1,16 @@ +#!/bin/sh +# TAKEN FROM https://unix.stackexchange.com/a/236747/135796 +# choose pinentry depending on PINENTRY_USER_DATA +# requires pinentry-curses and pinentry-tty +# this *only works* with gpg 2 +# see https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=802020 +# Fixes the pinentry-tty error https://github.com/neomutt/neomutt/issues/1014 + +case $PINENTRY_USER_DATA in + curses) + exec /usr/local/bin/pinentry-curses "$@" + ;; + *) + exec /usr/local/bin/pinentry-tty "$@" + ;; +esac |
