From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: derkire@gmail.com Newsgroups: gmane.emacs.help Subject: emacs interface with gpg-agent stopped working (or stopped caching passphrase) Date: Fri, 2 Sep 2016 23:32:11 -0700 (PDT) Message-ID: <7df56913-7dfd-4789-a984-48b34f576c2f@googlegroups.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1472884554 29534 195.159.176.226 (3 Sep 2016 06:35:54 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 3 Sep 2016 06:35:54 +0000 (UTC) Injection-Date: Sat, 03 Sep 2016 06:32:12 +0000 User-Agent: G2/1.0 To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Sep 03 08:35:50 2016 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bg4YN-0006yL-11 for geh-help-gnu-emacs@m.gmane.org; Sat, 03 Sep 2016 08:35:47 +0200 Original-Received: from localhost ([::1]:45133 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bg4YK-0002Zm-P9 for geh-help-gnu-emacs@m.gmane.org; Sat, 03 Sep 2016 02:35:44 -0400 X-Received: by 10.129.121.70 with SMTP id u67mr19951738ywc.2.1472884332224; Fri, 02 Sep 2016 23:32:12 -0700 (PDT) X-Received: by 10.36.225.78 with SMTP id n75mr286836ith.3.1472884332160; Fri, 02 Sep 2016 23:32:12 -0700 (PDT) Original-Path: usenet.stanford.edu!m9no213757qte.0!news-out.google.com!w143ni2381itb.0!nntp.google.com!e124no807901ith.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Complaints-To: groups-abuse@google.com Original-Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=98.248.38.171; posting-account=3JEZ1QoAAABxF2MlU4hf8Gt8_8_MxWeI Original-NNTP-Posting-Host: 98.248.38.171 Original-Xref: usenet.stanford.edu gnu.emacs.help:218754 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:111237 Archived-At: Hi,=20 I just ran a full dnf update of packages on my fedora 23 installation, and = the emacs interface with gpg-agent no longer works. I hope someone can tell= me what I need to do to make it work again. Here are the details. Expected (old) behavior: When opening (find-file) files in emacs, emacs con= tacts 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 ne= xt 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 e= ach time a new file is opened. That is, no more 5min/300sec window of cachi= ng. I interpret this to mean that the interface between emacs and the gpg-a= gent is not functioning correctly. Other observations (after spending at least 5 hours on this, with web searc= hes and trying to follow various hints and tips and recipes): 1. I think the GUI window that was previously used to enter the passphrase = was /usr/libexec/openssh/gnome-ssh-askpass. It looks similar.=20 2. I noticed that GPG_AGENT_INFO changed from something like $HOME/.gnupg/S= .gpg-agent:1949:1 to /run/user/1000/gnupg/S.gpg-agent.ssh 3. I tried setting GPG_TTY before starting a new emacs instance, but it mad= e no difference. 4. my gpg-agent.conf is default-cache-ttl 300 max-cache-ttl 3000 and I also tried to add enable-ssh-support allow-emacs-pinentry 5. OS and package versions Fedora release 23 (Twenty Three) Linux version 4.6.7-200.fc23.x86_64 (mockbuild@bkernel02.phx2.fedoraproject= .org) (gcc version 5.3.1 20160406 (Red Hat 5.3.1-6) (GCC) ) #1 SMP Wed Aug = 17 14:24:53 UTC 2016 GNU Emacs 24.5.1 (x86_64-redhat-linux-gnu, GTK+ Version 3.18.9) of 2016-04-= 11 on buildvm-25.phx2.fedoraproject.org gnupg2 x86_64 2.1.13-1.fc23 =20 6. My .xsession equivalent uses (csh, please forgive :)) eval `gpg-agent --daemon` and this command sets SSH_AUTH_SOCK=3D/run/user/1000/gnupg/S.gpg-agent.ssh but does not set GPG_AGENT_INFO. Setting GPG_AGENT_INFO manually to the sam= e value as SSH_AUTH_SOCK, before starting emacs in that same shell, does no= t fix the problem. ****************************************************************** I hope I have provided sufficient detail to understand what the problem is,= but as I said I have spent hours on this and cannot crack the problem. Tha= nks much.