X-Git-Url: https://git.sev.monster/~sev/dotfiles.git/blobdiff_plain/cd6fbefb8b6cb4f18b646807c900e7e7bcb9523b..e69caf640e206d5736bbac8d9a6dd75e63ec70c0:/bin/pinentry diff --git a/bin/pinentry b/bin/pinentry index 0bd1062..39349d5 100755 --- a/bin/pinentry +++ b/bin/pinentry @@ -1,9 +1,9 @@ #!/bin/sh # https://kevinlocke.name/bits/2019/07/31/prefer-terminal-for-gpg-pinentry -set -Ce -gfx="gnome gtk-2 gtk qt x11" -tty="curses tty" +set -C +gfx="gnome qt gtk-4 gtk-3 gtk-2 gtk bemenu dmenu x11" +tty="curses-ss curses tty" case "${PINENTRY_USER_DATA-}" in # prefer tty unless USE_TTY is 0 *USE_TTY=0*) list="$gfx $tty";; @@ -11,7 +11,7 @@ case "${PINENTRY_USER_DATA-}" in esac for x in $list; do - p=$(command -v "pinentry-$x") 2>/dev/null + p=$(command -v "pinentry-$x") if [ $? = 0 ]; then exec "$p" "$@" fi