use modern launchctl bootstrap/bootout API

This commit is contained in:
2026-03-20 03:15:25 +09:00
parent aaa0f5bbdf
commit 81b1fb6444
3 changed files with 4 additions and 10 deletions

View File

@@ -15,10 +15,11 @@ launchd:
mkdir -p $(HOME)/Library/LaunchAgents
sed 's|/Users/USER/.local/bin|$(PREFIX)|' docs/com.bitwarden.agent.plist \
> $(HOME)/Library/LaunchAgents/com.bitwarden.agent.plist
launchctl load $(HOME)/Library/LaunchAgents/com.bitwarden.agent.plist
launchctl bootout gui/$$(id -u) $(HOME)/Library/LaunchAgents/com.bitwarden.agent.plist 2>/dev/null || true
launchctl bootstrap gui/$$(id -u) $(HOME)/Library/LaunchAgents/com.bitwarden.agent.plist
launchd-unload:
launchctl unload $(HOME)/Library/LaunchAgents/com.bitwarden.agent.plist 2>/dev/null || true
launchctl bootout gui/$$(id -u) $(HOME)/Library/LaunchAgents/com.bitwarden.agent.plist 2>/dev/null || true
rm -f $(HOME)/Library/LaunchAgents/com.bitwarden.agent.plist
systemd:

View File

@@ -1,7 +0,0 @@
{
"name": "com.8bit.bitwarden",
"description": "Bitwarden desktop proxy",
"path": "/Users/USER/.local/bin/bw-proxy",
"type": "stdio",
"allowed_origins": ["chrome-extension://nngceckbapebfimnlniiiahkandclblb/"]
}

View File

@@ -1,7 +1,7 @@
{
"name": "com.8bit.bitwarden",
"description": "Bitwarden desktop proxy",
"path": "/Users/USER/.local/bin/bw-proxy",
"path": "/Users/%user%/.local/bin/bw-proxy",
"type": "stdio",
"allowed_extensions": ["{446900e4-71c2-419f-a6a7-df9c091e268b}"]
}