From debbugs-submit-bounces@debbugs.gnu.org Sun May 07 16:51:12 2017 Received: (at 25328) by debbugs.gnu.org; 7 May 2017 20:51:12 +0000 Received: from localhost ([127.0.0.1]:60825 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d7T96-0004pM-5m for submit@debbugs.gnu.org; Sun, 07 May 2017 16:51:12 -0400 Received: from mail-pg0-f43.google.com ([74.125.83.43]:34803) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d7T94-0004pA-MX for 25328@debbugs.gnu.org; Sun, 07 May 2017 16:51:11 -0400 Received: by mail-pg0-f43.google.com with SMTP id u28so12654866pgn.1 for <25328@debbugs.gnu.org>; Sun, 07 May 2017 13:51:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:in-reply-to:references:user-agent:date :message-id:mime-version; bh=5mYpPVfW+ZUNldDRUL3W5EVedxAQLDwxKzs32PVjcSU=; b=nPuXQ7MkRyq5JBppsweaqjqDl7HJQuUgLBvdvBq70QksZv8gutJtC3lrj+TuM/zpHU 7G/dqYIdZLwtbdgeXb9mj7HL/3QOw8jJwbSfsyCbIpUZx1yFCFotVaiAfz+YNP4DjUFL jC//oAI9d+vlUEL6YjWRLWgjRXyk5HFj3XhFZTofnaHz3gwP/usFOR+2n2pboEQiaY0e KuRMacjOH5OGAFyfWauttKumwj6hVc/R03eSpPqLhgKXMs7Dv4yq9+jAwqw+oJarKVUO HVGIOCKjZAlAsXjxGqHBpGUM+qm74TGBTgZxrYDYQtZ72uBNlYVBlrxhcnO3vz29HTxU Zjxg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references :user-agent:date:message-id:mime-version; bh=5mYpPVfW+ZUNldDRUL3W5EVedxAQLDwxKzs32PVjcSU=; b=XxITNZkOVyBej51DJ6aqCXBG2PtNtON/wVBgWcGs5eePTlRTd2Re0nA1v/2HMyo2d0 sXZKXkPzt6VjGqA/Dq4W3kHFj9x7dN4WICjw0LcrNB/86HHDaH6W0Z55STbJ6tQ3oV+v WrYgHBCIK/hLf8phbzbEHjoq7xrwsz6TJ/4dYlzW9wU3s641bjJU+uDt9avJ1hZxDB/k wZCf3J19rIrs7DIrRgAStDAEf5J6Advs5LEvVjzKsVkRJjzURAQent1UjZcTYKnu7bNq 5nVj0TuR8T7LiqzJK++icx7ZjFTnQSxX3VIChnYaKtaXoZujksq2G2pg4b4GqL2TJqRf K1WQ== X-Gm-Message-State: AN3rC/7IHs2r15xWm7Dd2vuOKEOzRcmYOcCR7GVpWrGLg/XTPEoAzF+G qleLm2boRfvtTQ== X-Received: by 10.98.77.135 with SMTP id a129mr27889547pfb.95.1494190264750; Sun, 07 May 2017 13:51:04 -0700 (PDT) Received: from garuda (c-24-18-189-215.hsd1.wa.comcast.net. [24.18.189.215]) by smtp.gmail.com with ESMTPSA id q6sm19557967pfq.18.2017.05.07.13.51.03 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 07 May 2017 13:51:03 -0700 (PDT) From: Chris Marusich To: gnupg-devel@gnupg.org Subject: Re: pinentry-gtk-2 fails after upgrade to 1.0.0: "Operation cancelled" In-Reply-To: <877f5o6e1d.fsf@gmail.com> (Chris Marusich's message of "Fri, 20 Jan 2017 23:57:34 -0800") References: <877f5o6e1d.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux) Date: Sun, 07 May 2017 13:50:59 -0700 Message-ID: <87tw4wtmq4.fsf@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" X-Spam-Score: -2.8 (--) X-Debbugs-Envelope-To: 25328 Cc: 25328@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.8 (--) --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Chris Marusich writes: > Hi, > > Since upgrading pinentry-gtk-2 from 0.9.7 to 1.0.0, I've noticed some > strange behavior. Whenever I try to do something that requires access > to my secret key, no window appears, and I get an error like the > following: > > $ gpg --sign /tmp/message=20 > gpg: signing failed: Operation cancelled > gpg: signing failed: Operation cancelled > $=20 > > Is this expected behavior with 1.0.0? > > This happens about 90% of the time. About 10% of the time, a pinentry > window actually does pop up. When using version 0.9.7, a pinentry > window popped up 100% of the time. I expected the behavior of 1.0.0 to > be the same. > > My software versions are: > > * GuixSD 0.12.0 > * GNOME 3 (GNOME shell 3.22.2) > * gnupg 2.1.16 > * pinentry-gtk-2 1.0.0 > > My ~/.gnupg/gpg-agent.conf file contains the following single line: > > pinentry-program /home/marusich/.guix-profile/bin/pinentry-gtk-2 > > When I change my gpg-agent.conf file to use pinentry-gnome3 , > pinentry-curses, or pinentry-tty (and I kill gpg-agent to make sure it > uses the modified file), the problem doesn't occur. > > When I keep pinentry-gtk-2 in my gpg-agent.conf file, and I log into an > Xfce session, the problem doesn't occur. Likewise, when I log in via a > virtual terminal (e.g. the kind you can get by pressing Control+Alt+F2), > the problem doesn't occur. > > In other words, the problem only seems to occur when I use > pinentry-gtk-2 as my pinentry-program, and I'm logged into a GNOME 3 > session. The problem occurs regardless of what program I am running > inside of that GNOME 3 session; for example, it happens in emacs when > emacs tries to automatically decrypt files ending in ".gpg", too. > > Here's how to reproduce the issue: > > * Log into a GNOME session on (a recently updated) GuixSD. > > * In $HOME/.gnupg/gpg-agent.conf, set pinentry-program to > pinentry-gtk-2, for example: > > pinentry-program /home/marusich/.guix-profile/bin/pinentry-gtk-2 > > * If the gpg-agent process is running, kill it to make sure it loads the > new gpg-agent.conf. > > * Open up any terminal (GNOME terminal and emacs' "M-x term" will both > reproduce the issue) to sign a message, e.g.: > > echo hello > /tmp/message > gpg --sign /tmp/message > > You should get the error very frequently. Did anybody get this message? I sent it in January of 2017, but I can't find it in the online archives, so I'm worried maybe it never got delivered: https://lists.gnupg.org/pipermail/gnupg-devel/ This time, I've CC'd 25328@debbugs.gnu.org so that my email gets delivered to at least one location for posterity. =2D-=20 Chris --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEy/WXVcvn5+/vGD+x3UCaFdgiRp0FAlkPiLMACgkQ3UCaFdgi Rp2keg/9FfBPfT7fJECQ6ULV/UhMZJ3av2WR9sbWGcAcuPp8dN0HL/ePewWb0Oq1 0ObJDrexo0pWJaV6jbmHbVqG+JYbnUtI2VzKSmif9mIa2gZeJnTuOqfT1cv51/zb xI4njpGWxGOU0erlju2XzlxVtd+dNPG5Y4cugNlwwWYjdOHNsK5sJdIT1Zk3rZJD 17xCdbOwNyQb3SaOD+IP2tVeTtoYOWY+FT8CGhpaQR+C8kDIdF5iBaGPYnYbaEmg Zda3+HJWLyn2uueYIHJyMtGiQ9GpSNjRz/yzh+2ElnZ0MR7uarDQzRHbJwsgmg3M IsgRO2pXE+iw9khrLsFcan/aU+qlPirTDQz19LRs8r5WzGheZZhqTxj3e3SfG31h ly3aByW/35Xf6CwYlIKPjM/h9ADutqHhE6yMWT1YPXKAcIq7g+JIInWjzz5oyOfU QKzrLzqCXNXnO2R5nVxNW/bGRiJNvJC41Z9P3biQfmS13g7VwoDTK4kupj8r6VEQ G7pP0ODo3lR1uzkUteFamwcptsYfnxkzXs29MzAMK6RkUx/jBtO2RGAkMUnorf0U KgyEVrNlTUDKcYaoRI8TthpqF810PkH2iBr1Mv0udSBP/wT1Wu4qcwvAZOsE0/Vk Zb5kBHW0YmcDl12cevo93IFqgk9mkEdCuTSSnLFlYii1efJnG7A= =NMwF -----END PGP SIGNATURE----- --=-=-=--