summaryrefslogtreecommitdiff
path: root/home/scripts/pinentry.sh
blob: f02ee6f3d717a07aa510d5e4abe453e3a5e76d8e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/bash

source log.sh "pinentry.sh"

#-- <gpg> --
bin="${HOMEBREW_PREFIX:-"/usr"}/bin"
case "$PINENTRY_USER_DATA" in
	*USE_TTY*)  pe=$bin/pinentry-tty  ;;
	*USE_CURSES*)   pe=$bin/pinentry-curses ;;
	*USE_QT*)   pe=$bin/pinentry-qt ;;
	*USE_MAC*)  pe=$bin/pinentry-mac  ;;
	*USE_GTK2*) pe=$bin/pinentry-gtk-2 ;;
	*USE_GNOME3*)   pe=$bin/pinentry-gnome3 ;;
	*USE_X11*)  pe=$bin/pinentry-x11 ;;
esac

log DEBUG "$pe"

exec $pe "$@"
#-- </gpg> --