14 lines
369 B
Bash
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 "$@"
|