nixrice/.local/bin/pinentry-wrapper
2023-10-13 03:44:45 -04:00

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