[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: emacs interface with gpg-agent stopped working (or stopped caching p
Re: emacs interface with gpg-agent stopped working (or stopped caching passphrase)
Sat, 3 Sep 2016 11:50:38 -0700
Setting epg-gpg-program in ~/.emacs fixed the problem
(setq epg-gpg-program "gpg2")
I also found that with the program versions listed in OP, I no longer
need to start gpg-agent in my .Xesession (or equivalent), nor do I
need to set any environment variables. Emacs will in fact start
gpg-agent when needed, and it automagically works, with
gnome-ssh-askpass popping up, and remembering the passphrase for a
Thank much for your insight.
(3d time trying to post this reply, hope I got it right this time)
On Sat, Sep 3, 2016 at 7:52 AM, Teemu Likonen <address@hidden> wrote:
> address@hidden [2016-09-02 23:32:11-07] wrote:
> > Expected (old) behavior: When opening (find-file) files in emacs,
> > emacs contacts the gpg-agent, and a GUI window is popped to enter the
> > passphrase. This is then enough to decrypt ALL additional .gpg files
> > opened by emacs for the next 5 minutes.
> > Actual (new) behavior: emacs instead asks for passphrase in the
> > minibuffer (not GUI popup!), and the file will decrypt, BUT the PP has
> > to be entered each time a new file is opened. That is, no more
> > 5min/300sec window of caching. I interpret this to mean that the
> > interface between emacs and the gpg-agent is not functioning
> > correctly.
> It looks to me that your Emacs is now using old GPG 1.4 and not GPG 2.x
> version. Emacs has some magic code to choose which one to use but the
> logic is unknown to me. There is also variable epg-gpg-program.
> GPG 1.4 will connect to agent if ~/.gnupg/gpg.conf file has this line:
> GPG 2.x don't need that option because they always connect to the agent.
> /// Teemu Likonen - .-.. <https://github.com/tlikonen> //
> // PGP: 4E10 55DC 84E9 DFF6 13D7 8557 719D 69D3 2453 9450 ///