Improve wrapper to fallback to curses even with DISPLAY set (#622077)
- improved wrapper provided by Ben Boeckel
This commit is contained in:
parent
7bf242f871
commit
7db36dd56d
@ -59,7 +59,10 @@ then
|
|||||||
elif [ -x /usr/bin/pinentry-qt ]
|
elif [ -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
|
# pinentry-curses is installed by default, test if we're in a terminal
|
||||||
|
elif [ -t 2 ]
|
||||||
|
then
|
||||||
|
export PINENTRY_BINARY="/usr/bin/pinentry-curses"
|
||||||
else
|
else
|
||||||
#test if gui binary is required
|
#test if gui binary is required
|
||||||
for opt in "$@"; do
|
for opt in "$@"; do
|
||||||
@ -69,8 +72,6 @@ else
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
export PINENTRY_BINARY="/usr/bin/pinentry-curses"
|
|
||||||
|
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -17,7 +17,7 @@
|
|||||||
|
|
||||||
Name: pinentry
|
Name: pinentry
|
||||||
Version: 0.8.1
|
Version: 0.8.1
|
||||||
Release: 3%{?dist}
|
Release: 4%{?dist}
|
||||||
Summary: Collection of simple PIN or passphrase entry dialogs
|
Summary: Collection of simple PIN or passphrase entry dialogs
|
||||||
|
|
||||||
Group: Applications/System
|
Group: Applications/System
|
||||||
@ -189,6 +189,9 @@ fi
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Jul 26 2011 Stanislav Ochotnicky <sochotnicky@redhat.com> - 0.8.1-4
|
||||||
|
- Improve wrapper to fallback to curses even with DISPLAY set (#622077)
|
||||||
|
|
||||||
* Fri Feb 18 2011 Stanislav Ochotnicky <sochotnicky@redhat.com> - 0.8.1-3
|
* Fri Feb 18 2011 Stanislav Ochotnicky <sochotnicky@redhat.com> - 0.8.1-3
|
||||||
- Fix pinentry-curses running as root by disabling capabilities (#677670)
|
- Fix pinentry-curses running as root by disabling capabilities (#677670)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user