If this runs on a system with a desktop environment installed, it will always try to run the graphical pinentry program. This will happen even if I'm SSH'd into the system.
GnuPG has a roundabout way of forcing use of the CLI for pinentry, by setting GPG_TTY=$(tty). I'm not sure of exactly how this logic works, but it does seem to work reliably. It would be ideal if rbw had a similar mechanism.
On Arch Linux,
/usr/bin/pinentry
looks like so:If this runs on a system with a desktop environment installed, it will always try to run the graphical pinentry program. This will happen even if I'm SSH'd into the system.
GnuPG has a roundabout way of forcing use of the CLI for pinentry, by setting
GPG_TTY=$(tty)
. I'm not sure of exactly how this logic works, but it does seem to work reliably. It would be ideal ifrbw
had a similar mechanism.