gpgme: error in OS X app bundle
Robert J. Hansen
rjh at sixdemonbag.org
Mon Jan 16 20:28:19 CET 2017
I've packaged Sherpa up into an OS X application. It works when opened
at the command line with "open sherpa.app"; it fails when double-clicked
from Finder. The offender seems to be:
GPGME 2017-01-16 14:14:55 <0x0d3f> gpgme-walk_path: 'gpgconf' not found
When launched from the command line, the child process inherits my PATH
and thus GnuPG can find gpgconf; when double-clicked in Finder, PATH
isn't inherited and thus gpgconf can't be found.
Now, I could blunder my way to a solution but I thought I'd ask here
first. Has anyone else encountered this problem? How did you solve it
in your own code?
I can think of a few ways to approach this, but they all seem inelegant.
Looking for a .profile in $HOME, parsing it for PATH information, and
looking for gpgconf in those dirs? Or should I just raise a, "Please
navigate to your gpgconf executable" file-chooser, which would likely be
too complicated for many novice users? Etc.
More information about the Gnupg-users