Update for using mailvelope with gpg installed via homebrew on macOS running on Apple Silicon
felixhammerl opened this issue · comments
Hi @toberndo ,
There is actually no need to do anything special when installing via brew install gpg gpgme
, which is comfortable.
I figured I'd create a quick update to the GPG installation instructions when installing via homebrew on macOS running on Apple Silicon, as some paths are different. The gpgmejson.json
looks slightly different:
Firefox:
> cat ~/Library/Application\ Support/Mozilla/NativeMessagingHosts/gpgmejson.json
{
"name": "gpgmejson",
"description": "Integration with GnuPG",
"path": "/opt/homebrew/bin/gpgme-json",
"type": "stdio",
"allowed_extensions": [
"jid1-AQqSMBYb0a8ADg@jetpack"
]
}
Chrome:
> cat ~/Library/Application\ Support/Google/Chrome/NativeMessagingHosts/gpgmejson.json
{
"name": "gpgmejson",
"description": "Integration with GnuPG",
"path": "/opt/homebrew/bin/gpgme-json",
"type": "stdio",
"allowed_origins": [
"chrome-extension://kajibbejlbohfaggdiogboambcijhkke/"
]
}
Maybe add a reminder that it must be named gpgmejson.json
, in accordance with the name
property.
You also need to add /opt/homebrew/bin
to launchd
.
> sudo launchctl config system path /opt/homebrew/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin
> sudo launchctl config user path /opt/homebrew/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin
Then restart the system.