mirror of
https://github.com/drduh/YubiKey-Guide.git
synced 2026-02-22 12:55:18 +08:00
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.
This commit is contained in:
parent
9778977fa2
commit
4d15a71e10
1 changed files with 20 additions and 15 deletions
35
README.md
35
README.md
|
|
@ -1301,22 +1301,27 @@ Create `$HOME/Library/LaunchAgents/gnupg.gpg-agent.plist` with the following con
|
|||
|
||||
```
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN"
|
||||
"http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>Label</key>
|
||||
<string>gnupg.gpg-agent</string>
|
||||
<key>RunAtLoad</key>
|
||||
<true/>
|
||||
<key>KeepAlive</key>
|
||||
<false/>
|
||||
<key>ProgramArguments</key>
|
||||
<array>
|
||||
<string>/usr/local/MacGPG2/bin/gpg-connect-agent</string>
|
||||
<string>/bye</string>
|
||||
</array>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>Label</key>
|
||||
<string>gnupg.gpg-agent</string>
|
||||
<key>RunAtLoad</key>
|
||||
<true/>
|
||||
<key>KeepAlive</key>
|
||||
<false/>
|
||||
<key>EnvironmentVariables</key>
|
||||
<dict>
|
||||
<key>PATH</key>
|
||||
<string>/opt/homebrew/bin:/usr/local/bin:/usr/bin:/usr/local/MacGPG2/bin:/bin</string>
|
||||
</dict>
|
||||
<key>ProgramArguments</key>
|
||||
<array>
|
||||
<string>/usr/bin/env</string>
|
||||
<string>gpg-connect-agent</string>
|
||||
<string>/bye</string>
|
||||
</array>
|
||||
</dict>
|
||||
</plist>
|
||||
```
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue