From: Jens Lechtenboerger <lechten@wi.uni-muenster.de>
To: 25947@debbugs.gnu.org
Subject: bug#25947: 26.0.50; EasyPG does not honor customized epg-gpg-program
Date: Fri, 03 Mar 2017 12:34:03 +0100 [thread overview]
Message-ID: <87y3wmbnmc.fsf@wi.uni-muenster.de> (raw)
Hi there,
I'm experimenting with Emacs on Qubes OS with Split GPG [0], where I
need to redirect invocations of gpg to qubes-gpg-client-wrapper.
However, customizing epg-gpg-program does not work, recipe from
'emacs -Q':
Check value of epg-gpg-program; in my case, I see gpg2:
C-h v epg-gpg-program
Eval the following:
(setq epg-debug t)
(customize-set-variable 'epg-gpg-program "/bin/echo")
Invoke some EasyPG operation, e.g., encrypt a fresh file:
C-x C-f test.gpg
At this point, the debug buffer " *epg-debug*" shows that
/usr/bin/gpg was invoked for decryption. Note that this is neither
gpg2 (my machine's default) nor /bin/echo (my customization).
Continue:
M-x spook
C-x C-s
A buffer for key selection opens. It doesn't matter whether I
select a public key (if there is one) or go for symmetric
encryption. Leave that buffer:
C-c C-c
Enter a Passphrase (e.g., "test") twice in case of symmetric
encryption.
Notice that an encrypted file has been created.
Buffer " *epg-debug*" shows that /usr/bin/gpg was used for
encryption, not /bin/echo. It doesn't matter whether I use
customize or setq on epg-gpg-program.
As a workaround, I've got the following in my .emacs:
(require 'epg-config)
(setq epg-gpg-program "/usr/bin/qubes-gpg-client-wrapper")
(push (cons 'OpenPGP (epg-config--make-gpg-configuration epg-gpg-program))
epg--configurations)
Best wishes
Jens
In GNU Emacs 26.0.50 (build 1, x86_64-unknown-linux-gnu, X toolkit, Xaw3d scroll bars)
of 2017-02-24 built on debian-8
Repository revision: 91932fff1ded8ed3b4d39dd06891f26960153b9e
[0] https://www.qubes-os.org/doc/split-gpg/
next reply other threads:[~2017-03-03 11:34 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-03-03 11:34 Jens Lechtenboerger [this message]
2017-03-09 23:26 ` bug#25947: 26.0.50; EasyPG does not honor customized epg-gpg-program Glenn Morris
2017-03-10 15:09 ` Jens Lechtenboerger
2017-03-10 19:26 ` Glenn Morris
2017-03-11 14:05 ` Jens Lechtenboerger
2017-03-12 1:27 ` Glenn Morris
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=87y3wmbnmc.fsf@wi.uni-muenster.de \
--to=lechten@wi.uni-muenster.de \
--cc=25947@debbugs.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.
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.