Files
dotfiles-public/dot_local/share/claude-shims/work/executable_xdg-open
T

8 lines
381 B
Bash
Executable File

#!/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 "$@"