Enable pinentry-tty
Signed-off-by: Boris Ranto <branto@redhat.com>
This commit is contained in:
parent
89e1cee86d
commit
5c001e4641
@ -1,4 +1,4 @@
|
|||||||
#!/bin/sh
|
#!/usr/bin/sh
|
||||||
|
|
||||||
# Copyright (c) 2006 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
# Copyright (c) 2006 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||||
# Copyright (c) 2009 Fedora Project
|
# Copyright (c) 2009 Fedora Project
|
||||||
@ -71,8 +71,12 @@ then
|
|||||||
elif [ -n "$DISPLAY" -a -x /usr/bin/pinentry-qt ]
|
elif [ -n "$DISPLAY" -a -x /usr/bin/pinentry-qt ]
|
||||||
then
|
then
|
||||||
export PINENTRY_BINARY="/usr/bin/pinentry-qt"
|
export PINENTRY_BINARY="/usr/bin/pinentry-qt"
|
||||||
# pinentry-curses is installed by default
|
# use pinentry-curses for interactive mode
|
||||||
else
|
elif [ -t 0 -a -t 1 ];
|
||||||
|
then
|
||||||
export PINENTRY_BINARY="/usr/bin/pinentry-curses"
|
export PINENTRY_BINARY="/usr/bin/pinentry-curses"
|
||||||
|
# fallback to pinentry-tty in no TTY is provided
|
||||||
|
else
|
||||||
|
export PINENTRY_BINARY="/usr/bin/pinentry-tty"
|
||||||
fi
|
fi
|
||||||
exec $PINENTRY_BINARY "$@"
|
exec $PINENTRY_BINARY "$@"
|
||||||
|
@ -88,6 +88,7 @@ This package contains the emacs based version of the PIN entry dialog.
|
|||||||
--enable-pinentry-gtk2 \
|
--enable-pinentry-gtk2 \
|
||||||
--enable-pinentry-qt5 \
|
--enable-pinentry-qt5 \
|
||||||
--enable-pinentry-emacs \
|
--enable-pinentry-emacs \
|
||||||
|
--enable-pinentry-tty \
|
||||||
--enable-libsecret
|
--enable-libsecret
|
||||||
|
|
||||||
%make_build
|
%make_build
|
||||||
@ -109,6 +110,7 @@ rm -fv $RPM_BUILD_ROOT%{_infodir}/dir
|
|||||||
%license COPYING
|
%license COPYING
|
||||||
%doc AUTHORS ChangeLog NEWS README THANKS TODO
|
%doc AUTHORS ChangeLog NEWS README THANKS TODO
|
||||||
%{_bindir}/pinentry-curses
|
%{_bindir}/pinentry-curses
|
||||||
|
%{_bindir}/pinentry-tty
|
||||||
%{_bindir}/pinentry
|
%{_bindir}/pinentry
|
||||||
%{_infodir}/pinentry.info*
|
%{_infodir}/pinentry.info*
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user