#!/bin/zsh
# Claude Desktop — isolated "personal" 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}"
export PATH="$HOME/.local/share/claude-shims/personal:$PATH"
exec /usr/bin/claude-desktop \
  --user-data-dir="$HOME/.local/share/claude-personal" \
  --password-store=gnome-libsecret \
  --class=ClaudePersonal \
  "$@"
