Avoid pinentry-gtk-2 when using console!

Benjamin Donnachie benjamin at py-soft.co.uk
Sun May 31 14:09:23 CEST 2009

2009/5/31 Roger <rogerx at sdf.lonestar.org>:
> From searching on the web, there's quite a few others griping about this
> same issue.

<rant>I do wish people would stop complaining about open source
software and actually roll their sleeves up and do something to

One solution, create a symbolic link in your home directory to
whatever pinentry you want to use at a particular time, and point your
gpg-agent config to that, eg in ~/.gnupg/gpg-agent - pinentry-program

So when X starts have your link, say ~/.gnupg/use-this-pinentry point
to the X one, when you start a shell, modify the link for
~/.gpg-agent/use-this-pinentry to the curses one - easy enough to
achieve with the bash login/out scripts.

Alternatively, modify the code for gpg-agent to achieve what you want
and submit to Werner for evaluation.


More information about the Gnupg-users mailing list