feat: Claude Desktop personal/work profile launchers, claude:// dispatcher and handlers (Linux only)

This commit is contained in:
bcherb2 committed 2026-11-18 01:30:14 -05:00
1 parent b4d8701665
commit 9baaf78522
11 files changed
+172

No files matched your search

@@ -0,0 +1,10 @@
[Desktop Entry]
Name=Claude (Personal)
Comment=Claude Desktop — personal account
GenericName=AI Assistant
Exec={{ .chezmoi.homeDir }}/.local/bin/claude-personal %U
Icon=claude-desktop
Type=Application
StartupNotify=true
StartupWMClass=ClaudePersonal
Categories=Utility;Development;
@@ -0,0 +1,6 @@
[Desktop Entry]
Name=Claude (profile-aware link handler)
Exec={{ .chezmoi.homeDir }}/.local/bin/claude-url-dispatch %u
Type=Application
NoDisplay=true
MimeType=x-scheme-handler/claude;
@@ -0,0 +1,10 @@
[Desktop Entry]
Name=Claude (Work)
Comment=Claude Desktop — work account
GenericName=AI Assistant
Exec={{ .chezmoi.homeDir }}/.local/bin/claude-work %U
Icon=claude-desktop
Type=Application
StartupNotify=true
StartupWMClass=ClaudeWork
Categories=Utility;Development;
@@ -0,0 +1,7 @@
[Desktop Entry]
Name=Claude Code URL Handler
Comment=Handle claude-cli:// deep links for Claude Code
Exec="{{ .chezmoi.homeDir }}/.local/bin/claude" --handle-uri %u
Type=Application
NoDisplay=true
MimeType=x-scheme-handler/claude-cli;
@@ -0,0 +1,7 @@
#!/bin/sh
# PATH shim, injected only into the "personal" Claude instance.
# Electron shells out to xdg-open (via PATH) to open the browser for
# sign-in. Recording the profile here is what lets the claude:// callback
# find its way back to the instance that actually started the login.
printf '%s' "personal" > "$HOME/.config/claude-profile-target" 2>/dev/null
exec /usr/bin/xdg-open "$@"
+7
View File
@@ -0,0 +1,7 @@
#!/bin/sh
# PATH shim, injected only into the "work" Claude instance.
# Electron shells out to xdg-open (via PATH) to open the browser for
# sign-in. Recording the profile here is what lets the claude:// callback
# find its way back to the instance that actually started the login.
printf '%s' "work" > "$HOME/.config/claude-profile-target" 2>/dev/null
exec /usr/bin/xdg-open "$@"