nixrice/.local/bin/pinentry-wrapper
2023-09-29 13:45:24 -04:00

17 lines
373 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
dmenu)
exec /usr/bin/pinentry-dmenu "$@"
;;
rofi)
exec /usr/bin/pinentry-rofi "$@"
;;
*)
exec /usr/bin/pinentry-curses "$@"
;;
esac