2 # https://kevinlocke.name/bits/2019/07/31/prefer-terminal-for-gpg-pinentry
5 gfx="gnome gtk-2 gtk qt x11"
7 case "${PINENTRY_USER_DATA-}" in
8 # prefer tty unless USE_TTY is 0
9 *USE_TTY=0*) list="$gfx $tty";;
14 p=$(command -v "pinentry-$x") 2>/dev/null
20 echo "No pinentry program found" >&2