# https://kevinlocke.name/bits/2019/07/31/prefer-terminal-for-gpg-pinentry
set -C
-gfx="gnome qt gtk-4 gtk-3 gtk-2 gtk bemenu dmenu x11"
+gfx="qt gnome 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
fi
done
+# fallback
+exec pinentry "$@"
+
echo "No pinentry program found" >&2