Loopback pinentry for GPG v2
parent
c646b61044
commit
178f6af884
|
@ -916,11 +916,10 @@ The GPG pinentry dialog is a neat console-based dialog that consumes the TTY
|
||||||
and prompts for a password. In general, this works well; with Emacs, I
|
and prompts for a password. In general, this works well; with Emacs, I
|
||||||
noticed that it fights for input.
|
noticed that it fights for input.
|
||||||
|
|
||||||
To avoid the problem, I disable pinentry indirectly by clearing out the
|
As long as =allow-loopback-pinentry= is set in =gpg-agent.conf=, =loopback=
|
||||||
=GPG_AGENT_INFO= environment variable.
|
can be set as the pinentry mode, which allows the caller to handle the
|
||||||
|
request. In our case, that means that the minibuffer will be used.
|
||||||
|
|
||||||
#+BEGIN_SRC emacs-lisp
|
#+BEGIN_SRC emacs-lisp
|
||||||
(defadvice epg--start (around advice-epg-disable-agent activate)
|
(setq epa-pinentry-mode 'loopback)
|
||||||
(setenv "GPG_AGENT_INFO" nil)
|
|
||||||
ad-do-it)
|
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
Loading…
Reference in New Issue