mirror of
https://github.com/Llewellynvdm/Tomb.git
synced 2024-11-10 23:20:57 +00:00
Merge pull request #303 from sargo-devel/master
Added pinentry-qt5 support
This commit is contained in:
commit
f4913e0744
15
tomb
15
tomb
@ -377,7 +377,7 @@ ask_password() {
|
|||||||
# Distributions have broken wrappers for pinentry: they do
|
# Distributions have broken wrappers for pinentry: they do
|
||||||
# implement fallback, but they disrupt the output somehow. We are
|
# implement fallback, but they disrupt the output somehow. We are
|
||||||
# better off relying on less intermediaries, so we implement our
|
# better off relying on less intermediaries, so we implement our
|
||||||
# own fallback mechanisms. Pinentry supported: curses, gtk-2, qt4
|
# own fallback mechanisms. Pinentry supported: curses, gtk-2, qt4, qt5
|
||||||
# and x11.
|
# and x11.
|
||||||
|
|
||||||
# make sure LANG is set, default to C
|
# make sure LANG is set, default to C
|
||||||
@ -429,6 +429,19 @@ GETPIN
|
|||||||
EOF`
|
EOF`
|
||||||
[[ "$gtkrc" = "" ]] || export GTK2_RC_FILES="$gtkrc_old"
|
[[ "$gtkrc" = "" ]] || export GTK2_RC_FILES="$gtkrc_old"
|
||||||
|
|
||||||
|
# TODO QT5 customization of dialog
|
||||||
|
elif _is_found "pinentry-qt5"; then
|
||||||
|
_verbose "using pinentry-qt5"
|
||||||
|
|
||||||
|
output=`cat <<EOF | pinentry-qt5
|
||||||
|
OPTION ttyname=$TTY
|
||||||
|
OPTION lc-ctype=$LANG
|
||||||
|
SETTITLE $title
|
||||||
|
SETDESC $description
|
||||||
|
SETPROMPT Password:
|
||||||
|
GETPIN
|
||||||
|
EOF`
|
||||||
|
|
||||||
# TODO QT4 customization of dialog
|
# TODO QT4 customization of dialog
|
||||||
elif _is_found "pinentry-qt4"; then
|
elif _is_found "pinentry-qt4"; then
|
||||||
_verbose "using pinentry-qt4"
|
_verbose "using pinentry-qt4"
|
||||||
|
Loading…
Reference in New Issue
Block a user