diff options
author | Koni Marti <koni.marti@gmail.com> | 2024-08-06 22:37:28 +0200 |
---|---|---|
committer | Robin Jarry <robin@jarry.cc> | 2024-10-12 00:12:25 +0200 |
commit | 163ea3ec7d2af3bac1afe6489071a8a286f282b8 (patch) | |
tree | 7f018a3910b373d374786eaceaadabe806ce4fbb /lib/notmuch/directory.go | |
parent | bc8698e1f088cf144a797d2d0b8f875138a79967 (diff) | |
download | aerc-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 'lib/notmuch/directory.go')
0 files changed, 0 insertions, 0 deletions