aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorKoni Marti <koni.marti@gmail.com>2024-08-06 22:37:28 +0200
committerRobin Jarry <robin@jarry.cc>2024-10-12 00:12:25 +0200
commit163ea3ec7d2af3bac1afe6489071a8a286f282b8 (patch)
tree7f018a3910b373d374786eaceaadabe806ce4fbb /config
parentbc8698e1f088cf144a797d2d0b8f875138a79967 (diff)
downloadaerc-163ea3ec7d2af3bac1afe6489071a8a286f282b8.tar.gz
aerc: support terminal-based pinentry programs
Support terminal-based pinentry programs. Suspend vaxis before running the command that can trigger a pinentry call. Provide the proper tty in the GPG_TTY environment variable (and set a TERM variable if not provided; this is necessary for pinentry-curses). Finally, resume vaxis. To enable terminal-based pinentry support, you have to set [general] use-terminal-pinentry = true in your aerc.conf. Any GUI-based pinentry programs will work the same as before if this option is not set to true. To test pinentry-tty, add the following to your ~/.gnupg/gpg-agent.conf: pinentry-program /usr/bin/pinentry-tty and kill all running gpg-agents: $ killall gpg-agent Fixes: https://todo.sr.ht/~rjarry/aerc/202 Changelog-fixed: Terminal-based pinentry programs (e.g. `pinentry-curses`) now work properly. Signed-off-by: Koni Marti <koni.marti@gmail.com> Acked-by: Robin Jarry <robin@jarry.cc>
Diffstat (limited to 'config')
-rw-r--r--config/general.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/config/general.go b/config/general.go
index edb1b3ad..7d86b0fb 100644
--- a/config/general.go
+++ b/config/general.go
@@ -24,6 +24,7 @@ type GeneralConfig struct {
Term string `ini:"term" default:"xterm-256color"`
DefaultMenuCmd string `ini:"default-menu-cmd"`
QuakeMode bool `ini:"enable-quake-mode" default:"false"`
+ UsePinentry bool `ini:"use-terminal-pinentry" default:"false"`
}
var General = new(GeneralConfig)