Use pinentry-tty only if installed. Restore fallback to curses version
This commit is contained in:
parent
dd5f99093f
commit
b8e35995d5
@ -71,12 +71,12 @@ then
|
||||
elif [ -n "$DISPLAY" -a -x /usr/bin/pinentry-qt ]
|
||||
then
|
||||
export PINENTRY_BINARY="/usr/bin/pinentry-qt"
|
||||
# use pinentry-curses for interactive mode
|
||||
elif [ -t 0 -a -t 1 ];
|
||||
# use pinentry-tty if installed
|
||||
elif [ -x /usr/bin/pinentry-tty ]
|
||||
then
|
||||
export PINENTRY_BINARY="/usr/bin/pinentry-curses"
|
||||
# fallback to pinentry-tty in no TTY is provided
|
||||
else
|
||||
export PINENTRY_BINARY="/usr/bin/pinentry-tty"
|
||||
# pinentry-curses is installed by default
|
||||
else
|
||||
export PINENTRY_BINARY="/usr/bin/pinentry-curses"
|
||||
fi
|
||||
exec $PINENTRY_BINARY "$@"
|
||||
|
Loading…
Reference in New Issue
Block a user