mirror of
https://github.com/morgan9e/bitwarden-desktop-agent
synced 2026-04-14 00:04:06 +09:00
use modern launchctl bootstrap/bootout API
This commit is contained in:
5
Makefile
5
Makefile
@@ -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:
|
||||
|
||||
@@ -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/"]
|
||||
}
|
||||
@@ -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}"]
|
||||
}
|
||||
Reference in New Issue
Block a user