From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Joakim Jalap Newsgroups: gmane.emacs.help Subject: Re: Password prompt inside Emacs with epg-gpg-program -> "gpg2"? Date: Tue, 09 Feb 2016 10:54:30 +0100 Message-ID: <87y4aujjjd.fsf@joakim-desk.jockej.lan> References: <87h9hjxnwc.fsf@web.de> <87bn7rnsqc.fsf@iki.fi> <874mdjxlcx.fsf@web.de> <87twlifsr0.fsf@gnus.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1455011718 16404 80.91.229.3 (9 Feb 2016 09:55:18 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 9 Feb 2016 09:55:18 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Feb 09 10:55:07 2016 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1aT50k-0001ts-EM for geh-help-gnu-emacs@m.gmane.org; Tue, 09 Feb 2016 10:55:06 +0100 Original-Received: from localhost ([::1]:53717 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aT50g-0006rX-Qi for geh-help-gnu-emacs@m.gmane.org; Tue, 09 Feb 2016 04:55:02 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58275) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aT50S-0006qZ-Oc for help-gnu-emacs@gnu.org; Tue, 09 Feb 2016 04:54:52 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aT50P-0001EY-6Y for help-gnu-emacs@gnu.org; Tue, 09 Feb 2016 04:54:48 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]:34654) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aT50O-0001EO-V7 for help-gnu-emacs@gnu.org; Tue, 09 Feb 2016 04:54:45 -0500 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1aT50N-0001Tg-7z for help-gnu-emacs@gnu.org; Tue, 09 Feb 2016 10:54:43 +0100 Original-Received: from h-202-248.a328.priv.bahnhof.se ([5.150.202.248]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 09 Feb 2016 10:54:43 +0100 Original-Received: from joakim.jalap by h-202-248.a328.priv.bahnhof.se with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 09 Feb 2016 10:54:43 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 38 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: h-202-248.a328.priv.bahnhof.se User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.90 (gnu/linux) Cancel-Lock: sha1:fFvgQx/qtYYEUaHXmF7WOBYqRvA= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 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-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:109073 Archived-At: Lars Ingebrigtsen writes: > Daiki Ueno writes: > >> pinentry.el is actually in lisp/net/ already. For the pinentry program, >> I don't think it is feasible, since there isn't (and won't be) a way to >> use a custom pinentry program from the gpg command line: >> https://lists.gnupg.org/pipermail/gnupg-devel/2015-May/029862.html Interesting to see that discussion :) I was looking at this months ago when I tried to get it working in Emacs, but I never really found that thread. > Hm... I don't know much about this stuff, but I'm not sure I > understand. :-) There exists a program already called pinentry-emacs, > somebody said? That allows us to enter passwords from Emacs, sort of? pinentry-emacs can be built from the pintry repo at git.gnupg.org/pintry.git. Together with the correct envvars set, this allows us to input passwords from Emacs, yes :) However this seems to be seen as a sort of hack, and it's disabled by default on Arch Linux, FreeBSD and Debian as it seems, so I have had to build it from source. I guess that alienates a lot of users though :/ I agree it would be nice to have this working out of the box. Figuring out all the steps took me quite a lot of time and effort actually (I discovered pinentry-emacs by chance while looking at some changelog entry in the pinentry repo, I think, and the figured out what it was by reading the configure.ac file) and I don't think it qualifies as user friendly. The reason I decided to look it up in the first place was that while the gtk popup diolog works fine on an X display, I wanted something that would work in a terminal as well. And unfortunately it seems pinentry-curses can't be run through Emacs, well I didn't manage anyway :) Joakim