From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Kridsada Thanabulpong Newsgroups: gmane.emacs.help Subject: Re: Terminal pinentry in termux Date: Thu, 31 Jan 2019 20:45:36 +0700 Message-ID: <86pnsddjpb.fsf@gemini.workspace.grid.in.th> References: <86pnsdul8c.fsf@daedalus.i-did-not-set--mail-host-address--so-tickle-me> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="221162"; mail-complaints-to="usenet@blaine.gmane.org" To: CB , help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Jan 31 15:12:35 2019 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gpD50-000vJq-Oj for geh-help-gnu-emacs@m.gmane.org; Thu, 31 Jan 2019 15:12:35 +0100 Original-Received: from localhost ([127.0.0.1]:55542 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gpD4z-0004Js-Bu for geh-help-gnu-emacs@m.gmane.org; Thu, 31 Jan 2019 09:12:33 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:57228) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gpCf3-00049l-5w for help-gnu-emacs@gnu.org; Thu, 31 Jan 2019 08:45:46 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gpCf1-0003DD-IC for help-gnu-emacs@gnu.org; Thu, 31 Jan 2019 08:45:45 -0500 Original-Received: from out1-smtp.messagingengine.com ([66.111.4.25]:33825) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gpCf1-0003Bg-1W for help-gnu-emacs@gnu.org; Thu, 31 Jan 2019 08:45:43 -0500 Original-Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 42834220D0; Thu, 31 Jan 2019 08:45:39 -0500 (EST) Original-Received: from mailfrontend2 ([10.202.2.163]) by compute6.internal (MEProxy); Thu, 31 Jan 2019 08:45:39 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ogsite.net; h= from:to:subject:in-reply-to:references:date:message-id :mime-version:content-type; s=fm2; bh=PkF13ZXWK3CFXwIQo6QS6YvAQO oM61/88ICXTFD6pZk=; b=2b6lU377bROOqMOWtG8NgeJ+qvqeD3kMdWdahiwDgZ 3D3TZeOZF8ayjDVekLrBNjVD2FaK49pyTFDwU4jd6VpCEVoNyOd6wngachOLZAZO 8ahupkPZ/IwGb77IQ+Q6kFGuL0ElqBRD+1XQBhISEagaTOUld+o3Yolj9ttp3Ccm HVLhkpHzhgMKGQoD2nocXRqmLYwrJv+tylwcmaL393wDeMUah3W3aeswDpI86oNG RP6v+MfMB0Zx4uZZqTnTyiDY+jCGgdlugx+LbvYITncrNMCIQzTAC9VQhzg9osjg m13CNaqgObmUuNxR5kc18Y78GsEwPQIIH7kiHnq1TpiA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=PkF13Z XWK3CFXwIQo6QS6YvAQOoM61/88ICXTFD6pZk=; b=le9HB/TFaBPajNQJfW7QyJ WIOEgR3AA+S7vqoV5INKVBdtWVNrs/mT6ZqFxq1JiZfhJw8wFVhw+iAi//xLKaGL EqpS5v7rDfQE+tlKahHxB3ekBhuKuxLb70PoO2rTJAeuqZ0BuVI7HTkraWvOuGDn BpUML0mAlPNs8cLVc67PhAEOMi44n+t72TeN1nnd0TIGnm1NYgkHxY2Dr2yNBQxb CO0XGT3QudmQ9KSza3iBH0//E3hdJF84R8JUNIR8sHL1Gpnuk+Swr8MHhSXMkSjH WYzwNYxVq01hvbS+h0p6Kk+jkyStRSD0TpCZoceszuTA31sffF93fbxNlnTpw+Gg == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedtledrjeeigdehjecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfhuthenuceurghilhhouhhtmecufedt tdenucenucfjughrpefhvffujghffffkgggtsehttdertddttddtnecuhfhrohhmpefmrh hiughsrggurgcuvfhhrghnrggsuhhlphhonhhguceoshhirhhnsehoghhsihhtvgdrnhgv theqnecukfhppedufeelrdelledruddvfedrkeeknecurfgrrhgrmhepmhgrihhlfhhroh hmpehsihhrnhesohhgshhithgvrdhnvghtnecuvehluhhsthgvrhfuihiivgeptd X-ME-Proxy: Original-Received: from localhost (ns547006.ip-139-99-123.net [139.99.123.88]) by mail.messagingengine.com (Postfix) with ESMTPA id 2715D10310; Thu, 31 Jan 2019 08:45:37 -0500 (EST) In-Reply-To: <86pnsdul8c.fsf@daedalus.i-did-not-set--mail-host-address--so-tickle-me> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 66.111.4.25 X-Mailman-Approved-At: Thu, 31 Jan 2019 09:11:54 -0500 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:119180 Archived-At: 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/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/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 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