On Saturday, 20 February 2021 15:22:45 GMT tastytea wrote:
> Hi!
> A short while ago, pinentry-gtk2 was removed from
> app-crypt/pinentry. Around the same time, app-crypt/gnupg was
> updated. Since then, I can not use the gpg-agent from whithin Emacs
> (--deamon) anymore. When I commit something with Magit, I get no
> password dialog but this error message instead:
> 
>   error: gpg failed to sign the data
> 
> After I add the key to the agent in another way (with `echo "test" | gpg
> --clearsign` for example), it works in Emacs again. So it seems that
> there is something wrong with my pinentry setup.
> 
> I tried pinentry-gnome3 and pinentry-qt5, it makes no
> difference. GPG_AGENT_INFO is known to Emacs.
> 
> This is my ~/.gnupg/gpg-agent.conf:
> 
> default-cache-ttl 43200
> max-cache-ttl 86400
> default-cache-ttl-ssh 21600
> max-cache-ttl-ssh 86400
> pinentry-program /usr/bin/pinentry

I have the same entry in my gpg-agent.conf and it works fine, but I do not use 
emacs.


> Does anybody know what the problem might be?
> 
> Kind regards, tastytea

My /usr/bin/pinentry is linked to pinentry-qt:

$ ls -la /usr/bin/pinentry
lrwxrwxrwx 1 root root 11 Jun 21  2019 /usr/bin/pinentry -> pinentry-qt

You could set this manually, or with eselect, or I think your desktop 
environment will set it for you.

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to