On Sat, 03 Aug 2013 22:56:16 +0100 Graham Anderson <andtecheu@opensuse.org> wrote:
Now when I run archive.sh to test this I receive the following errors:
gpg: CAST5 encrypted data No protocol specified xprop: unable to open display ':0' No protocol specified gpg-agent[5310]: can't connect to the PIN entry module: End of file gpg-agent[5310]: command get_passphrase failed: No pinentry gpg: problem with the agent: No pinentry gpg: encrypted with 1 passphrase gpg: decryption failed: No secret key
Normally, when I run gpg at the command line, the GUI pinentry prompter comes up. For some reason it isn't showing up in your case. Perhaps you need to have XAUTHORITY in the environment. The other possibility, which I have not tested, would be to use something like: gpg-agent --pinentry-program /usr/bin/pinentry-curses bash That should start a secondary shell. Running your script under the secondary shell should prompt for a passphrase using the curses module. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org