From 4d15a71e10f6f0ffbd8dc799c77c649679659435 Mon Sep 17 00:00:00 2001 From: cyberbob Date: Sun, 1 Feb 2026 20:09:48 +0100 Subject: [PATCH] Make gpg-agent config work on both Mac architectures Homebrew installs to /usr/local on x86 and /opt/homebrew on Apple Silicon architectures, so this plist now sets PATH to cover both (MacPGP2 as a bonus) and runs gpg-connect-agent via /usr/bin/env. --- README.md | 35 ++++++++++++++++++++--------------- 1 file changed, 20 insertions(+), 15 deletions(-) diff --git a/README.md b/README.md index 78fe59d..d0d4784 100644 --- a/README.md +++ b/README.md @@ -1301,22 +1301,27 @@ Create `$HOME/Library/LaunchAgents/gnupg.gpg-agent.plist` with the following con ``` - + - - Label - gnupg.gpg-agent - RunAtLoad - - KeepAlive - - ProgramArguments - - /usr/local/MacGPG2/bin/gpg-connect-agent - /bye - - + + Label + gnupg.gpg-agent + RunAtLoad + + KeepAlive + + EnvironmentVariables + + PATH + /opt/homebrew/bin:/usr/local/bin:/usr/bin:/usr/local/MacGPG2/bin:/bin + + ProgramArguments + + /usr/bin/env + gpg-connect-agent + /bye + + ```