GPG 用密码加密文件后,emacs 每次解密都需要输入密码。

我不是说过了:

pinentry-tty 有效的。

在我上面放的链接里:

In short (Edit 1): How to make gpg -qd --pinentry-mode loopback out.gpg cache the passphrase for a period of time in the cli. It used to cache but now it doesn’t.

So pinentry-qt correctly caches the passphrase but any subsequent--pinentry-mode loopback command requires a passphrase input with pinentry-qt in order not ask for the passphrase again.

所以怎么解决这个问题?