#754204 pass: handle unavailable gpg-agent gracefully

#754204#5
Date:
2014-07-08 16:58:53 UTC
From:
To:
I fear that pass still doesn't suite all my use cases and therefore ask
you to take another (small) patch. When gpg2 is installed and no
gpg-agent is running pass fails:

$ pass show foo
gpg: gpg-agent is not available in this session
gpg: can't query passphrase in batch mode
gpg: Invalid passphrase; please try again ...
gpg: can't query passphrase in batch mode
gpg: Invalid passphrase; please try again ...
gpg: can't query passphrase in batch mode
gpg: decryption failed: secret key not available
$ echo $?
2
$

Rather than failing, I'd like it to fall back to reading the passphrase
from the terminal.

Thanks in advance

Helmut

#754204#10
Date:
2014-07-08 17:10:57 UTC
From:
To:
[...]

Thanks.  Would you mind forwarding gpg2-no-agent.patch to the upstream
mailing list?

http://lists.zx2c4.com/mailman/listinfo/password-store

I can of course cherry-pick it in advance of a new upstream release, but
I'd like to make sure it goes upstream.

Cheers,