Here's another fix that functions well with gpg-agent:
$ GPG_AGENT_INFO="~/.gnupg/S.gpg-agent:$(pgrep gpg-agent):1" gjots2
It seems that they changed gpg-agent to not export GPG_AGENT_INFO so people are using that
fix eg https://github.com/funtoo/keychain/issues/59
If you can copy me at "bob dot hepple at gmail dot com" there's a better
chance I'll see it.