jobcore/pinentry/pinentry
2022-03-20 14:19:37 +02:00

14 lines
369 B
Bash

#!/bin/sh
# user-defined pre-exec hook
test -r "${XDG_CONFIG_HOME:-$HOME/.config}"/pinentry/preexec &&
. "${XDG_CONFIG_HOME:-$HOME/.config}"/pinentry/preexec
# site-defined pre-exec hook
test -r /etc/pinentry/preexec &&
. /etc/pinentry/preexec
test -e /usr/lib/libgtk-x11-2.0.so.0 &&
exec /usr/bin/pinentry-gtk-2 "$@"
exec /usr/bin/pinentry-curses "$@"