On Mittwoch, 9. April 2025 23:57:24 Mitteleuropäische Sommerzeit Stuart 
Longland via Gnupg-users wrote:
> Is there a way to relax this restriction?

$ man gpg-agent
       --grab
       --no-grab
              Tell  the  pinentry  to  grab the keyboard and mouse.  This 
option should be used on X-Servers to avoid X-sniffing at‐
              tacks. Any use of the option --grab overrides an used option --
no-grab.  The default is --no-grab.

So, adding "no-grab" to ~/.gnupg/gpg-agent.conf should do what you want.

Granted. Unless you know that pinentry is always invoked and controlled by 
gpg-agent it's not obvious that you have to look at the manual page of gpg-
agent to look for options to configure pinentry.

Hmm, the default should be "no-grab" according to the man page. According to 
the history "no-grab" is default since gnupg 2.1.23 (released almost 8 years 
ago). Maybe Debian decided that "grab" is better for you.

Regards,
Ingo

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

_______________________________________________
Gnupg-users mailing list
Gnupg-users@gnupg.org
https://lists.gnupg.org/mailman/listinfo/gnupg-users

Reply via email to