]> git.wh0rd.org Git - home.git/commitdiff
gnupg: move pinentry helper to ~/.bin
authorMike Frysinger <vapier@gentoo.org>
Fri, 14 Aug 2015 10:32:44 +0000 (06:32 -0400)
committerMike Frysinger <vapier@gentoo.org>
Fri, 14 Aug 2015 10:32:44 +0000 (06:32 -0400)
.bin/pinentry-dynamic [new file with mode: 0755]
.gnupg/gpg-agent.conf

diff --git a/.bin/pinentry-dynamic b/.bin/pinentry-dynamic
new file mode 100755 (executable)
index 0000000..5c569e9
--- /dev/null
@@ -0,0 +1,5 @@
+#!/bin/sh
+case $* in
+*-display*) exec pinentry-gtk-2 "$@" ;;
+*)          exec pinentry-curses "$@" ;;
+esac
index fc81fe061aad562f4fd7183b3fea095df94623bf..051dc4226b7015f70ebdf4e801f563584466eccb 100644 (file)
@@ -1,4 +1,4 @@
-pinentry-program /usr/bin/pinentry-dynamic
+pinentry-program ~/.bin/pinentry-dynamic
 no-grab
 # GPGConf disabled this option here at Wed Sep  1 00:04:01 2004 EDT
 default-cache-ttl 604800