Subject: | Enhancement: Ability to Specify "Which" GPG to Call |
I use Solaris and my GPG is in an odd place:
/opt/csw/bin/gpg
Occasionally /opt/csw/bin fails to make its way into my PATH setting and
GnuPG::Interface fails with:
Can't exec "gpg": Permission denied at
/opt/csw/share/perl/site_perl/GnuPG/Interface.pm line 321.
exec() error: Permission denied at
/opt/csw/share/perl/site_perl/GnuPG/Interface.pm line 321.
Others should substitute "/opt/csw/share/perl/site_perl" for wherever
the module gets installed. After putting in a "hack" to work out what
it's up to, I found that it's doing this:
gpg --homedir /home/lloy0076/.gnupg --armor --recipient test --encrypt
[That was print "@command" to a file handle at line 320 btw]
I therefore did this:
# cd /usr/bin
# ln -s /opt/csw/bin/gpg gpg
...and it worked.
Therefore, I am wondering if:
1. It's possible to change how "gpg" is called
* Useful for odd setups like mine
* Possibly useful for the security paranoid
[is the GPG we called really the one we wanted]
2. If so, how and although I've read the documentation, which
documentation page have I missed?
3. If not, would this be a useful addition?
I can see the "call => 'gpg'" in GnuGPG::Interface.pm but don't
understand Class::MethodMaker enough to be able to work out how to
change this prior to initialising the object.
Thanks,
DSL