From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jonathan Leech-Pepin Subject: Re: emacs , windows, gpg, org-crypt Date: Thu, 29 Mar 2018 11:59:41 -0400 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="001a113d225a638dc105688f3798" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:56898) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f1ZyC-0004V5-7p for emacs-orgmode@gnu.org; Thu, 29 Mar 2018 12:00:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f1Zy7-0007BB-Tf for emacs-orgmode@gnu.org; Thu, 29 Mar 2018 12:00:08 -0400 Received: from mail-oi0-x22c.google.com ([2607:f8b0:4003:c06::22c]:33621) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1f1Zy7-00078h-Md for emacs-orgmode@gnu.org; Thu, 29 Mar 2018 12:00:03 -0400 Received: by mail-oi0-x22c.google.com with SMTP id 126-v6so5602231oig.0 for ; Thu, 29 Mar 2018 09:00:03 -0700 (PDT) In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: hymie! Cc: Org Mode Mailing List --001a113d225a638dc105688f3798 Content-Type: text/plain; charset="UTF-8" On 29 March 2018 at 09:59, hymie! wrote: > Greetings. > > I set this all up years ago, I just got a new computer, I'm not an expert > with Windows, and I've been unable to find my problem with Google. > > I have Windows 10, I have emacs, I have Org 9.0.3 (yes, I need to update), > and I have GPG4Win. I have entries in my .emacs file: > > (require 'org-crypt) > (org-crypt-use-before-save-magic) > (setq org-tags-exclude-from-inheritance (quote ("crypt"))) > [...] > (setq org-crypt-key "xxxxxxxx") > ;; GPG key to use for encryption > [...] > (global-set-key "\C-cd" 'org-decrypt-entry) > (global-set-key "\C-ce" 'org-encrypt-entry) > > But when I try to decrypt something, I get this error: > > Searching for program: no such file or directory, gpg > > The only responses I can find are to add gpg to my %PATH% , but > I don't think my employer's GPO will let me. There is a machine/system %PATH% and a Current User %PATH%. Normally GPOs will block you from modifying the system %PATH% but allow you to change the User Path. This may be an option. I was hoping to find a place in org-crypt where "gpg" is defined so that > I can specify a full path instead, but as yet, I haven't found it. I'd take a look at ~C-h v -gpg TAB~ -> possible suggestion is epg-gpg-program which points to "gpg" by default. ~org-encrypt-string~ uses epg for encryption purposes so changing that program path should fix the issue. -- Jon > Can somebody give me a push? > > --hymie! http://lactose.homelinux.net/~hymie > hymie@lactose.homelinux.net > > > --001a113d225a638dc105688f3798 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


On 29 March 2018 at 09:59, hymie! <hymie@lactose.homelinux.n= et> wrote:
Greetings.

I set this all up years ago, I just got a new computer, I'm not an expe= rt
with Windows, and I've been unable to find my problem with Google.

I have Windows 10, I have emacs, I have Org 9.0.3 (yes, I need to update),<= br> and I have GPG4Win.=C2=A0 I have entries in my .emacs file:

=C2=A0 =C2=A0 =C2=A0(require 'org-crypt)
=C2=A0 =C2=A0 =C2=A0(org-crypt-use-before-save-magic)
=C2=A0 =C2=A0 =C2=A0(setq org-tags-exclude-from-inheritance (quote (&q= uot;crypt")))
=C2=A0 =C2=A0 =C2=A0[...]
=C2=A0 =C2=A0 =C2=A0(setq org-crypt-key "xxxxxxxx")
=C2=A0 =C2=A0 =C2=A0 =C2=A0;; GPG key to use for encryption
=C2=A0 =C2=A0 =C2=A0[...]
=C2=A0 =C2=A0 =C2=A0(global-set-key "\C-cd" 'org-decrypt-entr= y)
=C2=A0 =C2=A0 =C2=A0(global-set-key "\C-ce" 'org-encrypt-entr= y)

But when I try to decrypt something, I get this error:

=C2=A0 Searching for program: no such file or directory, gpg

The only responses I can find are to add gpg to my %PATH% , but
I don't think my employer's GPO will let me.

<= /div>
There is a machine/system %PATH% and a Current User %PATH%.<= /div>
Normally GPOs will block you from modifying the system %PATH% but=
allow you to change the User Path.=C2=A0 This may be an option.<= /div>

I was hoping to find a place in org-crypt where "gpg" is defined = so that
I can specify a full path instead, but as yet, I haven't found it.

I'd take a look at ~C-h v -gpg TAB~ -&= gt; possible suggestion is
epg-gpg-program which points to "= gpg" by default.
~org-encrypt-string~ uses epg for encryptio= n purposes so changing
that program path should fix the issue.

--
Jon
=C2=A0
Can somebody give me a push?

--hymie!=C2=A0 =C2=A0 =C2=A0http://lactose.homelinux.net/~hy= mie=C2=A0 =C2=A0 hymie@l= actose.homelinux.net



--001a113d225a638dc105688f3798--