Emacs: stop popup for gpg passphrase

emacs causes an annoying popup and asks for a missing phrase whenever I open an encrypted file (somefile.gpg, .authinfo.gpg). I would like him to ask me to enter the password in the minibuffer.

is there any configuration parameter for this.?

Edit: It is important to note that if I press escape in the popup window, emacs will ask for the password in the minibuffer. So there is a backup in emacs, I like to make this backup method the first choice.

UPDATE: Emacs version: GNU Emacs 24.3.50.12 (x86_64-unknown-linux-gnu, GTK + version 3.4.2) 2013-05-28 sealing

+4
source share
2 answers

Now I have posted the following in .emacs , which finally disables the gui prompt.

 ;; Do not use gpg agent when runing in terminal (defadvice epg--start (around advice-epg-disable-agent activate) (let ((agent (getenv "GPG_AGENT_INFO"))) (setenv "GPG_AGENT_INFO" nil) ad-do-it (setenv "GPG_AGENT_INFO" agent))) 
+4
source

The comments on the gpg-agent in Ch f epg-context-set-passphrase-callback RET look relevant, and I see that there are a lot of related discussions and obvious workarounds in the Emacs Wiki, under the heading "How to use a non-graphical password prompt for GPG":

http://emacswiki.org/emacs/EasyPG#toc4

+2
source

Source: https://habr.com/ru/post/1483497/


All Articles