commit 82bd6ac84db7298b3a4961a4a97799efb2dc7569 parent a81b74cf726d324863a5761d9894052bd4d2da24 Author: Antoine Amarilli <a3nm@a3nm.net> Date: Fri, 16 Oct 2015 22:24:50 +0100 my-pinentry Diffstat:
my-pinentry | | | 14 | ++++++++++++++ |
1 file changed, 14 insertions(+), 0 deletions(-)
diff --git a/my-pinentry b/my-pinentry @@ -0,0 +1,14 @@ +#!/bin/bash +# choose pinentry depending on PINENTRY_USER_DATA +# requires pinentry-curses and pinentry-gtk2 +# this *only works* with gpg 2 +# see https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=802020 + +case $PINENTRY_USER_DATA in +gtk) + exec /usr/bin/pinentry-gtk-2 "$@" + ;; +*) + exec /usr/bin/pinentry-curses "$@" +esac +