- Someone suggested that if you have seahorse installed, remove it. (I
did, but it did not work)
- Someone suggested that exporting
PINENTRY_USER_DATA="USE_CURSES=1" will do the trick. It also did
Add --no-use-agent to the command option. It worked with old version of
gpg. No gui is appeared while decrypting the file.
This does not work with gpg2. Program gpg2 needs a
use-agent. You have to create a file ~/.gnupg/gpg-agent.conf and add
And we are done.
- How to Encrypt and Decrypt a File using GnuPG in Linux (thegeekstuff.com)
- GPG Key-Pair Encryption and Decryption and Signing (priyac91.wordpress.com)