#!/bin/zsh
# Claude Desktop — isolated "work" profile.
# --user-data-dir  : separate Electron profile; also separates the
#                    single-instance lockfile, which is what allows a
#                    second concurrent instance to run at all.
# --password-store : app only auto-detects on KDE; XFCE would fall back
#                    to basic_text, where safeStorage is unavailable and
#                    OAuth tokens do not survive a restart.
# --class          : distinct WM_CLASS so xfwm/taskbar treats the two
#                    windows as separate apps.
export CLAUDE_CONFIG_DIR="${CLAUDE_CONFIG_DIR:-$HOME/.claude-work}"
export PATH="$HOME/.local/share/claude-shims/work:$PATH"
exec /usr/bin/claude-desktop \
  --user-data-dir="$HOME/.local/share/claude-work" \
  --password-store=gnome-libsecret \
  --class=ClaudeWork \
  "$@"
