From: Kridsada Thanabulpong <sirn@ogsite.net>
To: CB <caladanbrood17@yandex.ru>, help-gnu-emacs@gnu.org
Subject: Re: Terminal pinentry in termux
Date: Thu, 31 Jan 2019 20:45:36 +0700 [thread overview]
Message-ID: <86pnsddjpb.fsf@gemini.workspace.grid.in.th> (raw)
In-Reply-To: <86pnsdul8c.fsf@daedalus.i-did-not-set--mail-host-address--so-tickle-me>
Hi,
AFAIK, gpg-agent will use the INSIDE_EMACS environment variable to detect
whether GnuPG is being called inside Emacs then forward pinentry to the
Emacs pinentry socket (usually /tmp/emacs<uid>/pinentry) if exists.
My first guess would be something is causing $INSIDE_EMACS to not being
set properly under Termux. You could try to run, inside scratch buffer:
(getenv "INSIDE_EMACS")
...to see if it was set. If it wasn't, I'm not sure how the variable
was set normally, but in my .emacs I have this line:
(setenv "INSIDE_EMACS" emacs-version)
To ensure it's present no matter how I run Emacs. If it was already set
then maybe try to inspect if pinentry socket exists at
/tmp/emacs<uid>/pinentry.
Also, if you happen to run gpg-agent as ssh-agent, you'd need to have:
(shell-command "gpg-connect-agent updatestartuptty /bye" "*gpg-update-tty*")
Line somewhere in your .emacs (but INSIDE_EMACS must also already be set).
There's no way for gpg-agent to know which tty to use via the ssh-agent
protocol, but the command also happens to call the function that updates
agent to forward pinentry to Emacs.
Regards,
Kridsada
CB <caladanbrood17@yandex.ru> writes:
> Hello,
>
> I'd like to ask how to configure terminal minibuffer pinentry in emacs?
> On my laptop, where I run GUI Emacs it works perfectly. But on my
> tablet, where I have it run in termux it tries to use the gnupg (curses
> I guess) pinentry instead of the minibuffer. How could I copy the GUI
> behavior on termux?
>
> Thank you and kind regards,
>
> CB
next prev parent reply other threads:[~2019-01-31 13:45 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-01-31 11:20 Terminal pinentry in termux CB
2019-01-31 13:45 ` Kridsada Thanabulpong [this message]
2019-01-31 14:20 ` Eli Zaretskii
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=86pnsddjpb.fsf@gemini.workspace.grid.in.th \
--to=sirn@ogsite.net \
--cc=caladanbrood17@yandex.ru \
--cc=help-gnu-emacs@gnu.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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).