From: Tassilo Horn <tsdh@gnu.org>
To: HASM <hasm@example.invalid>
Cc: help-gnu-emacs@gnu.org, Daiki Ueno <ueno@unixuser.org>
Subject: Re: Pinentry in emacs without X doesn't work reliably
Date: Fri, 08 Jul 2016 19:53:35 +0200 [thread overview]
Message-ID: <8760sg2ezk.fsf@gnu.org> (raw)
In-Reply-To: 87y45cum6v.fsf@127.0.0.1
HASM <hasm@example.invalid> writes:
Hi HASM,
>> Now the problem is, that my keyboard input doesn't seem to get thru
>> to that pinentry dialog reliably.
>
> Did you install gnugp-1 on your system?
Nope, but that should work with GnuPG-2, too.
> Did you have or create this file
> ~/.gnupg/gpg-agent.conf
> and have/add these lines into it:
> allow-emacs-pinentry
> pinentry-program /usr/bin/pinentry-emacs
> (replace the path above to where your pinentry-emacs is)?
Ah, cool. That and installing the pinentry ELPA package made the thing
work! Now my ~/.gnupg/gpg-agent.conf on the server is
--8<---------------cut here---------------start------------->8---
daemon
allow-emacs-pinentry
enable-ssh-support
max-cache-ttl 14400
max-cache-ttl-ssh 14400
default-cache-ttl 7200
default-cache-ttl-ssh 14400
pinentry-program /usr/bin/pinentry-emacs
--8<---------------cut here---------------end--------------->8---
> Did you add these lines to your emacs initialization:
> (load "pinentry")
> (pinentry-start)
> (setq epg-gpg-program "gpg")
> (or use customize instead of the last line)?
Since I installed it via ELPA, I can just call (pinentry-start) without
loading before. And `epg-gpg-program' is "gpg2" here.
But I wonder if
pinentry-program /usr/bin/pinentry-emacs
is the right thing to do. What if some other program needs a pinentry?
The pinentry ELPA package description doesn't say I need that line.
https://elpa.gnu.org/packages/pinentry.html
However, when I remove that line, I get an error that there's no
pinentry program.
I hoped that allow-emacs-pinentry would somehow use pinentry-emacs if
running inside emacs and some other pinentry program for non-emacs
programs.
Daiki, since you've made the thing, do you have a clue what else I might
need? I'm running gnupg-2.1.13 and pinentry-0.9.7, so according to the
pinentry ELPA package docs, those versions should be recent enough. Or
maybe it's the other way round and pinentry-emacs spawns the right
pinentry depending on if we're running inside emacs? Then that we need
to also set the pinentry-program to pinentry-emacs should be documented.
Bye,
Tassilo
next prev parent reply other threads:[~2016-07-08 17:53 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.838.1467992730.26859.help-gnu-emacs@gnu.org>
2016-07-08 16:30 ` Pinentry in emacs without X doesn't work reliably HASM
2016-07-08 17:53 ` Tassilo Horn [this message]
2016-07-08 15:45 Tassilo Horn
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=8760sg2ezk.fsf@gnu.org \
--to=tsdh@gnu.org \
--cc=hasm@example.invalid \
--cc=help-gnu-emacs@gnu.org \
--cc=ueno@unixuser.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.