On 17/03/15 01:14, intrigeri wrote:
>> One workaround in the meantime is to edit
>> /usr/bin/parcimonie-torsocks-gpg, but of course this changes things
>> for the entire system.
> 
>> I also tried putting an override in ~/bin/ and adding this to PATH,
>> but it didn't work.
> 
> I find this surprising, given I use a very similar solution. Are you
> sure parcimonie knew about ~/bin/ being in the $PATH, in the
> environment where it was launched?
> 

For some reason I can't get the perl GnuPG::Interface to respect $PATH. I tried 
adding my own parcimonie-torified-gpg in /usr/local/bin but it didn't work, and 
various other things didn't work.

But I have a different solution to this that bypasses the perl, simply by 
having parcimonie-torified-gpg itself read $GNUPGBIN - patch supplied. I chose 
GNUPGBIN because that's what caff also uses.

X

-- 
GPG: 4096R/1318EFAC5FBBDBCE
git://github.com/infinity0/pubkeys.git
From 0db81be7613e51a1968641a21c015239ac9aa12d Mon Sep 17 00:00:00 2001
From: Ximin Luo <[email protected]>
Date: Sun, 23 Aug 2015 21:05:54 +0200
Subject: [PATCH] have GNUPGBIN envvar override the path to the gpg binary

---
 bin/parcimonie-torified-gpg | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/bin/parcimonie-torified-gpg b/bin/parcimonie-torified-gpg
index 49c3bc0..6e06d13 100755
--- a/bin/parcimonie-torified-gpg
+++ b/bin/parcimonie-torified-gpg
@@ -1,3 +1,3 @@
 #!/bin/sh
-
-exec torsocks gpg $@
+GNUPGBIN="${GNUPGBIN:-gpg}"
+exec torsocks $GNUPGBIN $@
-- 
2.5.0

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to