Created
February 7, 2012 10:35
-
-
Save TauPan/1759035 to your computer and use it in GitHub Desktop.
wrapper for pinentry which selects curses or gtk depending on latency
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
if [ -n "$DISPLAY" ] && [ "$(xprintidle)" -lt 100 ] | |
then | |
pinentry-gtk-2 "$@" | |
else | |
pinentry-curses "$@" | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This works, the problem was that I have to use
echo UPDATESTARTUPTTY | gpg-connect-agent
to tell gpg-agent about the tty I want to use.