<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/xhtml; charset=utf-8">
</head>
<body><div style="font-family: sans-serif;"><div class="markdown" style="white-space: normal;">
<p dir="auto" style="margin: 1.12em 0;">On 2025-01-21 (KW 04) at 15:52:07 (-0600) Ben Hyde wrote:</p>
<blockquote style="margin: 0 0 5px; padding-left: 5px; border-left: 2px solid #3983C4; color: #3983C4;">
<ol>
<li>“Gpg” eh?  What about “gpg2” … my memory is that last time I did this I used gpg2.</li>
<li>“/usr/local/bin” eh?  I thought the brew folks moved to /opt/homebrew/bin on Apple Silicon.</li>
<li>I seem to remember solving this, at last once, with a symbolic link to where I found gpg installed, but that was a longtime ago.</li>
</ol>
</blockquote>
<p dir="auto" style="margin: 1.12em 0;">if you install <code style="padding: 0 0.25em; background-color: #F7F7F7;">gnupg2</code> with MacPorts, ie., the current standard version of GPG/PGP/whatever-the-hell-its-called, it installs to <code style="padding: 0 0.25em; background-color: #F7F7F7;">/opt/local/bin/gpg</code>. There's nothing stopping you from just doing something like <code style="padding: 0 0.25em; background-color: #F7F7F7;">sudo ln -s $(which gpg) /usr/local/bin/gpg</code>. I have had gpg symlinked like that for many versions of Mac OS and it's been fine. I'm on an M4 mini on Mac OS 15.x</p>
<blockquote style="margin: 0 0 5px; padding-left: 5px; border-left: 2px solid #3983C4; color: #3983C4;">
<p dir="auto" style="margin: 1.12em 0;">4a.  Of course mailMate runs as a child/spawn, of launchd.  Luck me I already know how to set environment variable in launchd for this kind of thing.</p>
</blockquote>
<p dir="auto" style="margin: 1.12em 0;">It would be a significantly more complicated and unwieldy thing to try and set an environmental variable for a single application that does not run as a service that needs to be initiated by <code style="padding: 0 0.25em; background-color: #F7F7F7;">launchd</code> on boot.</p>
<blockquote style="margin: 0 0 5px; padding-left: 5px; border-left: 2px solid #3983C4; color: #3983C4;">
<p dir="auto" style="margin: 1.12em 0;">4b. Then I found an email that mentioned using “defaults set” to inject this info into mailmate<br>
defaults write com.freron.MailMate environmentVariables -array '{enabled = :true;  name = "MM_GPG"; value = "/opt/homebrew/bin/gpg"; }'</p>
</blockquote>
<p dir="auto" style="margin: 1.12em 0;">I just tried running <code style="padding: 0 0.25em; background-color: #F7F7F7;">defaults read com.freron.MailMate</code> but didn't see anything to suggest setting environmental variables.</p>
<p dir="auto" style="margin: 1.12em 0;">Try mailmate's help for 'Hidden Preferences' and 'Low Level Customization'? that will help you navigate the MacOS <code style="padding: 0 0.25em; background-color: #F7F7F7;">defaults</code> stuff.</p>
<blockquote style="margin: 0 0 5px; padding-left: 5px; border-left: 2px solid #3983C4; color: #3983C4;">
<p dir="auto" style="margin: 1.12em 0;">So at point I seemed reasonably to ask if this was written down someplace.</p>
<p dir="auto" style="margin: 1.12em 0;">If not, I’ll just kick it until something works :)</p>
</blockquote>
<p dir="auto" style="margin: 1.12em 0;">Personally I'd symlink wherever the <code style="padding: 0 0.25em; background-color: #F7F7F7;">gpg</code> (or whatever homebrew calls the installed binary) is to <code style="padding: 0 0.25em; background-color: #F7F7F7;">/usr/local/bin/gpg</code> and not worry about it. Don't overthink it.</p>
<p dir="auto" style="margin: 1.12em 0;">ander</p>

</div>
</div>
</body>

</html>