diff options
author | Elizabeth <me@liz.coffee> | 2025-05-19 23:03:02 -0700 |
---|---|---|
committer | Elizabeth <me@liz.coffee> | 2025-05-19 23:03:02 -0700 |
commit | 15b24ab9d782a8e5683f305ec8b1c31849a64246 (patch) | |
tree | bdb7c85f0d1f81e493c43360125ca61d6d26145c /home/scripts/pinentry.sh | |
download | dotfiles-15b24ab9d782a8e5683f305ec8b1c31849a64246.tar.gz dotfiles-15b24ab9d782a8e5683f305ec8b1c31849a64246.zip |
initial commit
Diffstat (limited to 'home/scripts/pinentry.sh')
-rwxr-xr-x | home/scripts/pinentry.sh | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/home/scripts/pinentry.sh b/home/scripts/pinentry.sh new file mode 100755 index 0000000..f02ee6f --- /dev/null +++ b/home/scripts/pinentry.sh @@ -0,0 +1,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> -- |