nixrice/.local/bin/pinentry-wrapper
2023-08-02 00:45:22 -04:00

14 lines
305 B
Bash
Executable file

#!/usr/bin/env bash
#
# Defaults to Qt, with a choice of curses for selected programs
# PINENTRY_USER_DATA is a GnuPG defined variable (see man gpg)
case "$PINENTRY_USER_DATA" in
qt)
exec /usr/bin/pinentry-qt "$@"
;;
*)
exec /usr/bin/pinentry-curses "$@"
;;
esac