2 # https://kevinlocke.name/bits/2019/07/31/prefer-terminal-for-gpg-pinentry
5 graphics="gtk-2 gtk qt x11 gnome"
7 case "${PINENTRY_USER_DATA-}" in
8 *USE_TTY=1*) list="$tty $graphics";;
9 *) list="$graphics $tty";;
13 p=which "pinentry-$x" 2>/dev/null
19 echo "No pinentry program found" >&2