[MlMt] GPG not found
Bill Cole
mmlist-20120120 at billmail.scconsult.com
Fri Jan 15 00:48:06 EST 2021
On 14 Jan 2021, at 19:50, Steven M. Bellovin wrote:
> This worked but raises more questions.
>
> I verified that I could find gpg from the shell. In other words, it
> was in my $PATH. I then fired up MailMate from an iTerm2 window—
> and it still couldn't find gpg. However, the symlink in /usr/local/bin
> did work. This suggests that either MailMate or something about
> the application launch framework (I did 'open
> /Applications/MailMate.app')
> is resetting the path. If the latter, perhaps there needs to be a
> hidden
> preference for $PATH?
The explanation is long and it's late, so here's a link to something I
worked out some time back:
https://lists.freron.com/mailmate/2015-April/004195.html
As for the PATH environment variable, how that is set for launched
applications in MacOS is also a long explanation, partly
included/implied in that post. In a shell launched by Terminal or
iTerm2, PATH is almost certainly tweaked in the shell initialization
files (.profile and .shrc or their equivalents for whatever shell you
use.) MacGPG adds its path to .profile, if I recall correctly. In any
case, you don't get the same PATH in a GUI app launched via launchd
(which 'open' does) as you get in an interactive login shell.
>
> On 14 Jan 2021, at 17:04, Dan Pritts wrote:
>
>> Probably, whatever method you're using to set your path (shell
>> startup files?) is not making it through to Mailmate.
>>
>> A couple minutes of searching doesn't show me how to set the
>> environment on my actual login session.
>>
>> If I were in your shoes I'd symlink gpg into /usr/local/bin; Mailmate
>> will probably find it there.
>>
>> On Jan 14, 2021, at 10:56 AM, Steven M. Bellovin
>> <smb at cs.columbia.edu> wrote:
>>>
>>> When I receive signed messages, MailMate 5757 (on Big Sur) says
>>> "OpenPGP: Unable to locate the command (gpg) needed". However, it is
>>> there:
>>>
>>> $ which gpg
>>> /usr/local/MacGPG2/bin/gpg
>>>
>>> I installed the gpgtools (this is a fresh installation of it and
>>> MailMate on a new laptop, though I copied over the MailMate
>>> directories from the previous laptop), though of course without
>>> support for Mail.app. What am I missing?
>>>
>>>
>>> --Steve Bellovin, https://www.cs.columbia.edu/~smb
>>> <https://www.cs.columbia.edu/~smb>
>>> _______________________________________________
>>> mailmate mailing list
>>> mailmate at lists.freron.com
>>> https://lists.freron.com/listinfo/mailmate
>
>> _______________________________________________
>> mailmate mailing list
>> mailmate at lists.freron.com
>> https://lists.freron.com/listinfo/mailmate
>
>
>
> --Steve Bellovin, https://www.cs.columbia.edu/~smb
> _______________________________________________
> mailmate mailing list
> mailmate at lists.freron.com
> https://lists.freron.com/listinfo/mailmate
--
Bill Cole
bill at scconsult.com or billcole at apache.org
(AKA @grumpybozo and many *@billmail.scconsult.com addresses)
Not Currently Available For Hire
More information about the mailmate
mailing list