# GPG2 无弹框验证的坑

Note  that since Version 2.0 this passphrase is only used if the option --batch
has also been given. Since Version 2.1 the --pinentry-mode also needs to be set
to loopback.

wiki 里特别说明了,还需要在 ~/.gnupg/gpg-agent.conf 写入