Unofficial Linux packages for Claude Desktop AI assistant with automated updates.
Table of contents
- Installation
- Optional Dependencies
- Features
- Claude Chat
- Claude Code Integration
- Cowork Integration
- CoworkSpaces
- Computer Use
- Hardware Buddy (Nibblet)
- Third-Party Inference
- Custom Themes (Experimental)
- Patches
- Automation
- Repository Structure
- Multiple Profiles
- Environment Variables
- Debugging
- Dispatch Architecture
- Known Limitations
- Tips
- See Also
- Legal Notice
After installing, see Optional Dependencies to enable Computer Use, Cowork, and more.
yay -S claude-desktop-bin
# Optional: Computer Use dependencies
# Pick the line matching your session type (echo $XDG_SESSION_TYPE and echo $XDG_CURRENT_DESKTOP):
# X11/XWayland:
sudo pacman -S --needed xdotool scrot imagemagick wmctrl
# Wayland (Sway):
sudo pacman -S --needed ydotool grim jq
# Wayland (Hyprland):
sudo pacman -S --needed ydotool grim hyprland
# Wayland (KDE Plasma):
sudo pacman -S --needed ydotool xdotool spectacle imagemagick
# Wayland (GNOME):
sudo pacman -S --needed ydotool xdotool glib2 gnome-screenshot imagemagick python-gobject gst-plugin-pipewire
# GNOME Wayland: enable Quick Entry hotkey (one-time, after install):
# claude-desktop --install-gnome-hotkey
# Optional: socat (faster Quick Entry toggle, ~2ms vs ~25ms python3 — not required)
sudo pacman -S --needed socatOn Wayland, the ydotoold daemon must be running — see ydotool setup.
Updates arrive through your AUR helper (e.g. yay -Syu).
# Add repository (one-time setup)
curl -fsSL https://patrickjaja.github.io/claude-desktop-bin/install.sh | sudo bash
# Install
sudo apt install claude-desktop-bin
# Optional: Computer Use dependencies
# Pick the line matching your session type (echo $XDG_SESSION_TYPE and echo $XDG_CURRENT_DESKTOP):
# X11/XWayland:
sudo apt install xdotool scrot imagemagick wmctrl
# Wayland (Sway):
sudo apt install ydotool grim jq
# Wayland (Hyprland):
sudo apt install ydotool grim hyprland
# Wayland (KDE Plasma):
sudo apt install ydotool xdotool kde-spectacle imagemagick
# Wayland (GNOME):
sudo apt install ydotool xdotool libglib2.0-bin gnome-screenshot imagemagick python3-gi gstreamer1.0-pipewire
# GNOME Wayland: enable Quick Entry hotkey (one-time, after install):
# claude-desktop --install-gnome-hotkey
# Optional: socat (faster Quick Entry toggle, ~2ms vs ~25ms python3 — not required)
sudo apt install socatWayland users: Computer Use requires ydotool v1.0+, but Ubuntu/Debian ship v0.1.8 which is too old. Run the ydotool setup script — without this, clicks will not work.
Updates are automatic via sudo apt update && sudo apt upgrade.
Manual .deb install (without APT repo)
wget https://github.com/patrickjaja/claude-desktop-bin/releases/latest/download/claude-desktop-bin_1.5354.0-2_amd64.deb
sudo dpkg -i claude-desktop-bin_*_amd64.deb# Add repository (one-time setup)
curl -fsSL https://patrickjaja.github.io/claude-desktop-bin/install-rpm.sh | sudo bash
# Install
sudo dnf install claude-desktop-bin
# Optional: Computer Use dependencies
# Pick the line matching your session type (echo $XDG_SESSION_TYPE and echo $XDG_CURRENT_DESKTOP):
# X11/XWayland:
sudo dnf install xdotool scrot ImageMagick wmctrl
# Wayland (Sway):
sudo dnf install ydotool grim jq
# Wayland (Hyprland):
sudo dnf install ydotool grim hyprland
# Wayland (KDE Plasma):
sudo dnf install ydotool xdotool spectacle ImageMagick
# Wayland (GNOME):
sudo dnf install ydotool xdotool glib2 gnome-screenshot ImageMagick python3-gobject gstreamer1-plugin-pipewire
# GNOME Wayland: enable Quick Entry hotkey (one-time, after install):
# claude-desktop --install-gnome-hotkey
# Optional: socat (faster Quick Entry toggle, ~2ms vs ~25ms python3 — not required)
sudo dnf install socatOn Wayland, the ydotoold daemon must be running — see ydotool setup.
Updates are automatic via sudo dnf upgrade.
Manual .rpm install (without DNF repo)
wget https://github.com/patrickjaja/claude-desktop-bin/releases/latest/download/claude-desktop-bin-1.5354.0-2.x86_64.rpm
sudo dnf install ./claude-desktop-bin-*.x86_64.rpm# Try without installing
nix run github:patrickjaja/claude-desktop-bin
# Or add to flake.nix
nix profile install github:patrickjaja/claude-desktop-binFor Computer Use, pass optional dependencies via override. Pick the block matching your session type (echo $XDG_SESSION_TYPE and echo $XDG_CURRENT_DESKTOP):
claude-desktop.override {
# X11/XWayland:
xdotool = pkgs.xdotool; scrot = pkgs.scrot;
imagemagick = pkgs.imagemagick; wmctrl = pkgs.wmctrl;
# Wayland (wlroots — Sway, Hyprland):
# ydotool = pkgs.ydotool; grim = pkgs.grim; jq = pkgs.jq;
# hyprland = pkgs.hyprland;
# Wayland (KDE Plasma):
# ydotool = pkgs.ydotool; xdotool = pkgs.xdotool;
# spectacle = pkgs.kdePackages.spectacle; imagemagick = pkgs.imagemagick;
# Wayland (GNOME):
# ydotool = pkgs.ydotool; xdotool = pkgs.xdotool;
# glib = pkgs.glib; gnome-screenshot = pkgs.gnome-screenshot;
# GNOME Wayland: enable Quick Entry hotkey (one-time, after install):
# Run: claude-desktop --install-gnome-hotkey
# Optional: socat (faster Quick Entry toggle, ~2ms vs ~25ms python3 — not required)
socat = pkgs.socat;
}NixOS flake configuration
{
inputs.claude-desktop.url = "github:patrickjaja/claude-desktop-bin";
# In your system config:
environment.systemPackages = [
inputs.claude-desktop.packages.x86_64-linux.default
];
}Note: Update by running
nix flake updateto pull the latest version.nix runalways fetches the latest.
Dispatch/Cowork: Requires Claude Code >= 2.1.86 (fixes
CLAUDE_CODE_BRIEFenv parsing). If nixpkgs ships an older version, install Claude Code manually and override withextraSessionPaths:claude-desktop.override { extraSessionPaths = [ "/path/to/directory/containing/claude" ]; }
# Download from GitHub Releases
wget https://github.com/patrickjaja/claude-desktop-bin/releases/latest/download/Claude_Desktop-1.5354.0-x86_64.AppImage
chmod +x Claude_Desktop-*-x86_64.AppImage
./Claude_Desktop-*-x86_64.AppImageComputer Use: Install optional dependencies using your distro's package manager — see the Computer Use packages table. On Wayland,
ydotoolv1.0+ is required — see ydotool setup.
Update: AppImage supports delta updates via appimageupdatetool. Only changed blocks are downloaded.
appimageupdatetool Claude_Desktop-*-x86_64.AppImage # Or from within the AppImage: ./Claude_Desktop-*-x86_64.AppImage --appimage-updateCompatible with AppImageLauncher and Gear Lever for automatic update notifications.
git clone https://github.com/patrickjaja/claude-desktop-bin.git
cd claude-desktop-bin
./scripts/build-local.sh --installNote: Source builds do not receive automatic updates. Pull and rebuild to update.
ARM64 .deb, .rpm, AppImage, and Nix packages are available for platforms like Raspberry Pi 5 (Raspberry Pi OS 64-bit / Ubuntu arm64), NVIDIA DGX Spark (Ubuntu 24.04 arm64), and Jetson (JetPack/Ubuntu 22.04 arm64). All features including the integrated terminal are supported on ARM64.
# Debian/Ubuntu ARM64 (via APT repo)
curl -fsSL https://patrickjaja.github.io/claude-desktop-bin/install.sh | sudo bash
sudo apt install claude-desktop-bin
# Fedora ARM64 (via DNF repo)
curl -fsSL https://patrickjaja.github.io/claude-desktop-bin/install-rpm.sh | sudo bash
sudo dnf install claude-desktop-binThe APT and DNF repos serve both x86_64 and arm64 packages — your package manager picks the correct architecture automatically.
Claude Desktop works without these — features degrade gracefully when tools are missing.
| Feature | Packages | Notes |
|---|---|---|
| Computer Use | See table below | Install manually for your session type (X11 or Wayland) — the app auto-detects which tools to call at runtime |
| Cowork & Dispatch | claude-cowork-service |
Agentic workspace and mobile→desktop task orchestration |
| Claude Code CLI | claude |
Required for Code integration, Cowork, and Dispatch |
| Browser Tools | Claude in Chrome extension | Uses Claude Code's native host (~/.claude/chrome/chrome-native-host). Claude Code CLI must be installed |
| Custom MCP Servers | nodejs |
Only needed for third-party MCP servers requiring system Node.js |
Computer Use packages — check your session type (echo $XDG_SESSION_TYPE) and desktop (echo $XDG_CURRENT_DESKTOP), then install the matching packages. At runtime, the app auto-detects your compositor and calls the correct tools.
| Operation | X11 / XWayland | Wayland — wlroots (Sway, Hyprland) | Wayland — GNOME | Wayland — KDE Plasma |
|---|---|---|---|---|
| Input automation | xdotool |
ydotool (+ ydotoold running) |
ydotool (+ ydotoold running) |
ydotool (+ ydotoold running) |
| Screenshots | scrot, imagemagick |
grim |
Portal+PipeWire (GNOME 46+), gdbus, gnome-screenshot |
spectacle, imagemagick |
| Clipboard | Electron API (built-in) | Electron API (built-in) | Electron API (built-in) | Electron API (built-in) |
| Display info | Electron API (built-in) | Electron API (built-in) | Electron API (built-in) | Electron API (built-in) |
| Window queries | wmctrl |
swaymsg (Sway), jq |
— | — |
| Cursor positioning | xdotool |
ydotool |
xdotool (read), ydotool (move) |
xdotool (read), ydotool (move) |
GNOME: On GNOME 46+ (Ubuntu 25.10+, Fedora 40+), screenshots use the XDG ScreenCast portal with PipeWire restore tokens — the first screenshot shows a one-time permission dialog, all subsequent screenshots are silent (requires
python-gobject/python3-giandgst-plugin-pipewire, typically pre-installed on GNOME). Token is stored in~/.config/Claude/pipewire-restore-token. Falls back tognome-screenshotandgdbus(glib2/libglib2.0-bin).KDE:
spectaclecaptures screenshots.imagemagick(convert) crops to monitor region on multi-monitor setups.Custom screenshot command: Set
COWORK_SCREENSHOT_CMDto override the auto-detection. Use placeholders{FILE}(output path),{X},{Y},{W},{H}(region). Example:COWORK_SCREENSHOT_CMD='spectacle -b -n -r -o {FILE}'
Computer Use needs ydotool v1.0+ and the ydotoold daemon for mouse/keyboard input on Wayland. Without it, clicks won't reach native Wayland windows. Tested on KDE Plasma and GNOME.
Arch Linux / Fedora — ydotool v1.x ships in the repos:
# Arch
sudo pacman -S ydotool && sudo systemctl enable --now ydotool
# Fedora
sudo dnf install ydotool && sudo systemctl enable --now ydotoolUbuntu / Debian — the repo ships v0.1.8 which is incompatible. Run the setup script to build and configure v1.0.4:
curl -fsSL https://raw.githubusercontent.com/patrickjaja/claude-desktop-bin/master/scripts/setup-ydotool.sh | sudo bashGNOME users — also set flat mouse acceleration for accurate cursor positioning:
gsettings set org.gnome.desktop.peripherals.mouse accel-profile flatNote: this changes acceleration for all mice, not just ydotool. KDE handles this per-device automatically.
Restart Claude Desktop after setup.
All major Claude Desktop features work natively on Linux through 42+ patches:
- Claude Chat — full desktop UI on Linux (x86_64 and ARM64, X11 and Wayland)
- Claude Code CLI — auto-detects system-installed Claude Code (setup)
- Local Agent Mode — git worktrees and agent sessions
- Cowork — agentic workspace with Live Artifacts, CoworkSpaces, and Imagine/Visualize (requires claude-cowork-service)
- Computer Use — 27 desktop automation tools (screenshot, click, type, scroll, drag, teach mode, and more) — see Optional Dependencies
- Dispatch — phone→desktop task orchestration via Anthropic's dispatch agent (requires claude-cowork-service)
- Browser Tools — 18 Chrome automation tools via the Claude in Chrome extension
- Third-Party Inference — use Vertex AI, Bedrock, Azure AI Foundry, or any Anthropic-compatible gateway (docs)
- Hardware Buddy (Nibblet) — BLE companion device showing animated session state (requires
bluez) - MCP server support — Model Context Protocol servers work on Linux
- Multi-monitor Quick Entry — global hotkey (Ctrl+Alt+Space) opens on the monitor where your cursor is
- Automated daily version checks, and more
Features unique to the Linux port — not available in upstream Claude Desktop:
- Custom Themes — 6 built-in color themes (Nord, Catppuccin variants, Sweet) or create your own via JSON config. See themes/README.md for the full guide
- Multiple Profiles — run several instances side by side, each logged in to a different account with fully isolated state.
claude-desktop --create-profile=workand you're done - Native Cowork Backend — claude-cowork-service replaces the macOS/Windows VM with a native Linux daemon, enabling Cowork, Dispatch, and Live Artifacts without emulation
The main Chat tab running natively on Linux.
This package patches Claude Desktop to work with system-installed Claude Code on Linux.
![]() |
![]() |
| Code Preview | Integrated Terminal |
To use Claude Code (and Cowork) features, install the CLI following the official setup guide, then verify it's accessible:
which claude # e.g. ~/.local/bin/claude, /usr/bin/claude, /usr/local/bin/claudeThe patch auto-detects claude in /usr/bin, ~/.local/bin, and /usr/local/bin.
Cowork is Claude Desktop's agentic workspace feature. This package patches it to work on Linux using a native backend daemon instead of the macOS/Windows VM.
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Live Artifacts are persistent HTML pages stored within Cowork sessions that can pull live data from connected MCP tools (Jira, GitLab, HubSpot, Trello, etc.). They persist across sessions and can be starred for quick access.
Requires Claude Code CLI (see above) and claude-cowork-service. See its Installation section for distro-specific instructions (APT, DNF, AUR, Nix, or binary install).
CoworkSpaces organizes folders, projects, and links into named Spaces for Cowork sessions. On macOS/Windows this is handled by the native backend (@ant/claude-swift). On Linux, fix_cowork_spaces.nim provides a full file-based implementation:
- Stores spaces in
~/.config/Claude/spaces.json - Full CRUD: create, update, delete spaces with folders, projects, and links
- File operations: list folder contents, read files, open with system handler
- Auto-memory directories per space (
~/.config/Claude/spaces/<id>/memory/) - Integrates with the SpaceManager singleton so
resolveSpaceContextworks for sessions
The Spaces UI is rendered by the claude.ai web frontend (loaded in the BrowserView).
Claude Desktop includes a built-in Computer Use MCP server with 27 tools for desktop automation — screenshot, click, type, scroll, drag, clipboard, and more. The learn tools (learn_application, learn_screen_region) generate interactive overlay tutorials that walk through any application's UI elements step by step.
Example prompt: "Can you use computer use MCP to explain me the PhpStorm application?"
| Welcome | Menu Bar | Toolbar |
|---|---|---|
![]() |
![]() |
![]() |
How it works on Linux: Upstream Computer Use is macOS-only — gated behind process.platform==="darwin" checks, macOS TCC permissions, and a native Swift executor. The patch (fix_computer_use_linux.nim) removes 3 platform gates, bypasses TCC with a no-op {granted: true}, and injects a Linux executor that auto-detects your session type and uses the right tools. See Optional Dependencies for the full package list.
App discovery for the teach/learn overlay scans .desktop files from /usr/share/applications, ~/.local/share/applications, and Flatpak directories. Each app is registered with multiple name variants (full name, first word, exec basename, icon name, .desktop filename) so the model can match apps flexibly (e.g., "Thunar" matches "Thunar File Manager").
Multi-monitor limitation: Computer Use on Linux is limited to the primary monitor only. Screenshots, clicks, and the teach overlay all target the primary display. On multi-monitor setups, coordinates are translated from display-relative to absolute screen space automatically. Use switch_display if you need to target a different monitor for screenshots/clicks, but the teach overlay always appears on primary.
Teach overlay on Linux: Since Electron's setIgnoreMouseEvents(true, {forward: true}) is broken on X11, the teach overlay stays fully interactive (buttons are clickable) but blocks clicks to apps behind it during the guided tour. The tooltip repositions between steps via anchorLogical coordinates pointing to UI elements.
See CLAUDE_BUILT_IN_MCP.md for the full tool reference and Optional Dependencies for required packages.
Hardware Buddy connects Claude Desktop to a Nibblet — a small M5StickC Plus BLE companion device that displays animated characters reflecting Claude's session state (idle, busy, celebrating, etc.).
Access: App menu → Developer → Open Hardware Buddy…
How it works on Linux: The BLE communication uses standard Web Bluetooth (Nordic UART Service) via Electron's Chromium layer — no native code needed. Upstream gates the feature behind a server-side flag. The patch (fix_buddy_ble_linux.nim) forces the flag on Linux so the BLE bridge initializes.
Prerequisites: bluez package (sudo pacman -S bluez bluez-utils / sudo apt install bluez). Bluetooth must be enabled (bluetoothctl power on).
Pairing: Power on the Nibblet — it advertises as Nibblet-XXXX. Click "Open Hardware Buddy…" from the Developer menu, then pair from the buddy window. The device shows session activity, token counts, and responds to permission prompts with physical button presses.
Configure Claude Desktop to use your own cloud inference backend instead of Anthropic's API. Supports Vertex AI (Google Cloud), Bedrock (AWS), Azure AI Foundry (Microsoft), or any Anthropic-compatible gateway (LiteLLM, Portkey, in-house proxies). Access via Developer → Configure Third-Party Inference.
The configuration window lets you manage connection settings, provider credentials, model lists, sandbox/workspace restrictions, MCP servers, telemetry, usage limits, and org-plugin directories — all from a single UI. Configurations can be exported as .mobileconfig (macOS MDM), .reg (Windows GPO), or plain JSON (Linux /etc/claude-desktop/enterprise.json).
How it works on Linux: The upstream SPA is mostly Linux-compatible — the main process already reads enterprise config from /etc/claude-desktop/enterprise.json and passes platform: "linux" to the frontend. The patch (fix_ion_dist_linux.nim) adds the Linux org-plugins path (/etc/claude-desktop/org-plugins) to the UI.
Enterprise deployment: Use MDM (macOS), GPO (Windows), or drop a JSON file at /etc/claude-desktop/enterprise.json (Linux) to manage fleet-wide configuration. See the Anthropic 3P configuration docs for the full key reference and recommended security profiles.
Themes override CSS variables in all windows (main chat, Quick Entry, Find-in-Page, About) via Electron's insertCSS() API. Set Claude Desktop to dark mode for best results with dark themes.
Quick start:
echo '{"activeTheme": "sweet"}' > ~/.config/Claude/claude-desktop-bin.json
# Restart Claude DesktopBuilt-in themes: sweet, nord, catppuccin-mocha, catppuccin-frappe, catppuccin-latte, catppuccin-macchiato
| Sweet | Nord | Catppuccin Mocha |
|---|---|---|
| Purple/pink warm tones (github.com/EliverLara/Sweet) | Arctic blue-grey (nordtheme.com) | Warm pastels (catppuccin.com) |
See themes/README.md for the full theming guide: CSS variable reference, how to extract app HTML/CSS for inspection, custom theme creation, and screenshots.
The package applies several patches to make Claude Desktop work on Linux. Each patch is isolated in patches/ for easy maintenance:
| Patch | Purpose | Debug pattern |
|---|---|---|
add_feature_custom_themes.nim |
CSS theme injection — 6 built-in themes (sweet, nord, catppuccin-*) | Prepended IIFE, no regex |
claude-native.js |
Linux stubs for @anthropic/claude-native (Windows-only module) |
Static file, no regex |
enable_local_agent_mode.nim |
Removes platform gates for Code/Cowork features, spoofs UA | rg -o 'function \w+\(\)\{return process\.platform.*status' index.js |
fix_0_node_host.nim |
Fixes MCP node host and shell worker paths for Linux | rg -o 'nodeHostPath.{0,50}' index.js |
fix_app_quit.nim |
Uses app.exit(0) to prevent hang on exit |
rg -o '.{0,50}app\.quit.{0,50}' index.js |
fix_asar_folder_drop.nim |
Prevents app.asar from being misdetected as a folder drop on launch (#24) | rg -o 'filter.*\.asar' index.js |
fix_asar_workspace_cwd.nim |
Redirects app.asar workspace paths to home directory (#24) | rg -o '__cdb_sanitizeCwd' index.js |
fix_browse_files_linux.nim |
Enables openDirectory in file dialog (upstream macOS-only) |
rg -o 'openDirectory.{0,60}' index.js |
fix_browser_tools_linux.nim |
Enables Chrome browser tools — redirects native host to Claude Code's wrapper | rg -o '"Helpers".{0,50}' index.js |
fix_buddy_ble_linux.nim |
Enables Hardware Buddy (Nibblet BLE device) — forces feature flag, uses Web Bluetooth via BlueZ | rg -o '2358734848.{0,50}' index.js |
fix_claude_code.nim |
Detects system-installed Claude Code binary | rg -o 'async getStatus\(\)\{.{0,200}' index.js |
fix_computer_use_linux.nim |
Enables Computer Use — removes platform gates, injects Linux executor (portal+PipeWire/grim/GNOME D-Bus/spectacle/scrot, xdotool/ydotool) | rg -o 'process.platform.*darwin.*t7r' index.js |
fix_computer_use_tcc.nim |
Stubs macOS TCC permission handlers to prevent error logs | Prepended IIFE, UUID extraction |
fix_cowork_error_message.nim |
Replaces Windows VM errors with Linux-friendly guidance | String literal match |
fix_cowork_linux.nim |
Enables Cowork — VM client, Unix socket, bundle config, binary resolution | rg -o '.{0,50}vmClient.{0,50}' index.js |
fix_cowork_sandbox_refs.nim |
Replaces VM/sandbox system prompts and tool descriptions with accurate host-system text | rg 'lightweight Linux VM|isolated Linux' index.js |
fix_cowork_first_bash.nim |
Fixes first bash command returning empty output — events socket race condition | rg -o 'subscribeEvents' index.js |
fix_cowork_spaces.nim |
File-based CoworkSpaces service (CRUD, file ops, events) | rg -o 'CoworkSpaces' index.js |
fix_cross_device_rename.nim |
EXDEV fallback for cross-filesystem file moves | Uses .rename( literal |
fix_detected_projects_linux.nim |
Enables detected projects with Linux IDE paths (VSCode, Cursor, Zed) | rg -o 'detectedProjects.{0,50}' index.js |
fix_disable_autoupdate.nim |
Disables auto-updater (no Linux installer) | rg -o '.{0,40}isInstalled.{0,40}' index.js |
fix_dispatch_linux.nim |
Enables Dispatch — forces bridge init, bypasses platform gate, forwards responses natively | rg -o 'sessions-bridge.*init' index.js |
fix_dispatch_outputs_dir.nim |
Fixes "Show folder" opening empty outputs dir — falls back to child session outputs | rg -o 'openOutputsDir.{0,80}' index.js |
fix_dock_bounce.nim |
Suppresses taskbar attention-stealing on KDE/Wayland | Prepended IIFE, no regex |
fix_enterprise_config_linux.nim |
Reads enterprise config from /etc/claude-desktop/enterprise.json |
rg -o 'enterprise.json' index.js |
fix_imagine_linux.nim |
Enables Imagine/Visualize — forces GrowthBook flag for inline SVG/HTML rendering | rg -o '3444158716' index.js |
fix_ion_dist_linux.nim |
Patches ion-dist 3P config SPA — adds Linux org-plugins path, fixes platform ternary | rg 'org-plugins' locales/ion-dist/assets/v1/*.js |
fix_locale_paths.nim |
Redirects locale file paths to Linux install location (also handles index.pre.js if present) |
Global string replace on process.resourcesPath |
fix_marketplace_linux.nim |
Forces host-local mode for plugin operations (no VM); promotes $HOME-scoped CLI plugins to user scope so they appear under "Personal Plugins" |
rg -o 'function \w+\(\w+\)\{return\(\w+==null.*mode.*ccd' index.js |
fix_native_frame.nim |
Native window frames on Linux, preserves Quick Entry transparency | rg -o 'titleBarStyle.{0,30}' index.js |
fix_office_addin_linux.nim |
Extends Office Addin MCP server to include Linux | rg -o '.{0,30}louderPenguinEnabled.{0,30}' index.js |
fix_process_argv_renderer.nim |
Injects process.argv=[] in renderer preload to prevent TypeError |
rg -o '.{0,30}\.argv.{0,30}' mainView.js |
fix_profile_url_routing.nim |
Hooks shell.openExternal to write a per-profile auth-marker file before opening SSO URLs, so the system claude:// handler can route callbacks to the right profile |
rg -o 'shell\.openExternal' index.js |
fix_profile_window_title.nim |
Appends profile name to window title (Claude → Claude (work)) for named profiles |
Prepended IIFE, page-title-updated listener |
fix_quick_entry_app_id.nim |
Gives Quick Entry a distinct Wayland app_id so shell-extension users can blacklist it independently (#39); resets to per-profile app_id after Quick Entry closes |
rg -o '.{0,30}BrowserWindow.*titleBarStyle.*hidden.{0,30}' index.js |
fix_quick_entry_cli_toggle.nim |
Enables claude-desktop --toggle Quick Entry hotkey (~5-25 ms via Unix socket); per-profile socket path |
rg -o 'QUICK_ENTRY.{0,80}' index.js |
fix_quick_entry_position.nim |
Quick Entry opens on cursor's monitor (multi-monitor); position+focus retries gated to X11 only (Wayland: no jitter) | rg -o 'getPrimaryDisplay.{0,50}' index.js |
fix_quick_entry_ready_wayland.nim |
Adds 100ms timeout to Quick Entry ready-to-show wait (Wayland hang fix; ready-to-show never fires for frameless transparent windows) |
rg -o 'ready-to-show.{0,50}' index.js |
fix_quick_entry_wayland_blur_guard.nim |
Guards Quick Entry blur-to-dismiss against spurious Wayland blur events | rg -o '.{0,30}blur.{0,30}null.{0,30}' index.js |
fix_read_terminal_linux.py |
Removed in v1.2.234 — upstream now natively supports Linux | N/A |
fix_startup_settings.nim |
XDG autostart management for "Start at login" toggle; per-profile autostart files for named profiles | rg -o 'isStartupOnLoginEnabled.{0,50}' index.js |
fix_tray_dbus.nim |
Prevents DBus race conditions with mutex and cleanup delay | rg -o 'menuBarEnabled.*function' index.js |
fix_tray_icon_theme.nim |
Theme-aware tray icon (light/dark) | rg -o 'nativeTheme.{0,50}tray' index.js |
fix_tray_path.py |
Removed — tray icon paths handled by fix_locale_paths.nim |
N/A |
fix_updater_state_linux.nim |
Adds version fields to idle updater state to prevent TypeError | rg -o 'status:"idle".{0,50}' index.js |
fix_utility_process_kill.nim |
SIGKILL fallback when UtilityProcess doesn't exit gracefully | rg -o 'Killing utiltiy proccess' index.js |
fix_vm_session_handlers.nim |
Global exception handler for VM session safety | Prepended IIFE with fallbacks |
fix_window_bounds.nim |
Fixes BrowserView bounds on maximize/snap, Quick Entry blur | Injected IIFE, minimal regex |
When Claude Desktop updates break a patch, only the specific patch file needs updating. The debug pattern column shows the rg command to find the relevant code in the new version's index.js.
This repository automatically:
- Checks for new Claude Desktop versions daily
- Validates all patches in Docker before pushing to AUR
- Updates the AUR package when new versions are detected
- Creates GitHub releases for tracking updates
- Maintains proper SHA256 checksums
The CI pipeline includes a test build step that validates patches before updating AUR:
- Docker Test Build - Runs
makepkgin anarchlinux:base-develcontainer - Pattern Matching Validation - Each patch exits with code 1 if patterns don't match
- Pipeline Stops on Failure - Broken packages never reach AUR users
- Build Logs Uploaded - Artifacts available for debugging failures
If upstream Claude Desktop changes break a patch:
- The pipeline fails with clear
[FAIL]output - Build logs show which pattern didn't match
- AUR package remains unchanged until patches are updated
.github/workflows/- GitHub Actions for automationscripts/- Build and validation scriptspatches/- Linux compatibility patchespackaging/- Debian, RPM, AppImage, and Nix build scriptsPKGBUILD.template- AUR package template
Run several Claude Desktop instances side by side, each logged in to a different account, with fully isolated state for both Desktop and the Claude Code CLI it spawns. Useful for separating work from personal accounts, juggling multiple SSO tenants, or testing config changes without affecting your main install.
# One-time setup per profile
claude-desktop --create-profile=work
claude-desktop --create-profile=personal
# Launch (any of these work)
claude-desktop-work # via the per-profile shortcut
claude-desktop --profile=work # via the system launcher
# …or click "Claude (work)" in your application menu
# Inspect / clean up
claude-desktop --list-profiles
claude-desktop --delete-profile=work # removes entry points; user data preservedIf you don't pass --profile= and don't launch through a named-profile shortcut, you get the default profile. This is byte-identical to a single-instance install — same ~/.config/Claude, same ~/.claude, same sockets, same WM identity. Nothing changes for users who never touch profiles. There's no --create-profile=default step, and it's always available implicitly.
You can run the default profile alongside any number of named profiles. The default profile is just "the profile with no suffix."
A named profile is created with --create-profile=NAME. Names must match [a-zA-Z0-9_-]+ and the literal default is reserved.
--create-profile installs three things in your home directory (no root needed):
| Path | Purpose |
|---|---|
~/.local/lib/claude-desktop/com.anthropic.claude-desktop-NAME |
Per-profile Electron binary (real file — see Why a copy? below). Sibling files in the same directory are symlinks back to the system install. |
~/.local/bin/claude-desktop-NAME |
Convenience launcher — symlink to the system launcher. Pulls profile name from its own basename. |
~/.local/share/applications/com.anthropic.claude-desktop-NAME.desktop |
Application-menu entry titled Claude (NAME). Exec= is absolute so it works regardless of $PATH. |
User data is not created until first launch — that way --create-profile is cheap and reversible.
Three equivalent ways:
claude-desktop --profile=NAME [args…]— explicit flag.CLAUDE_PROFILE=NAME claude-desktop [args…]— env var, useful for scripts.claude-desktop-NAME [args…]— invocation via the per-profile shortcut. The launcher infersNAMEfrom its own basename.
All three set the same CLAUDE_PROFILE env var, which propagates through Electron, the cowork hooks, and any spawned claude (Code CLI) child processes.
Subcommands honor the active profile: claude-desktop-work --toggle toggles work's Quick Entry, claude-desktop --profile=work --diagnose reports work's paths.
| Resource | Default profile | Named profile (e.g. work) |
|---|---|---|
| Electron userData (login, logs, settings, custom themes, spaces.json, PipeWire portal token) | ~/.config/Claude |
~/.config/Claude-work |
| Claude Code config (settings, projects, sessions, plugins) | ~/.claude |
~/.claude-work |
| Quick Entry toggle socket | $XDG_RUNTIME_DIR/claude-desktop-qe.sock |
…/claude-desktop-qe-work.sock |
| systemd user scope (cgroup, portal identity) | app-com.anthropic.claude-desktop-PID.scope |
app-com.anthropic.claude-desktop-work-PID.scope |
| WM_CLASS / Wayland app_id (taskbar grouping, Alt-Tab) | com.anthropic.claude-desktop |
com.anthropic.claude-desktop-work |
| XDG autostart entry ("Start at login") | ~/.config/autostart/com.anthropic.claude-desktop.desktop |
…/com.anthropic.claude-desktop-work.desktop |
The cowork VM-service socket ($XDG_RUNTIME_DIR/cowork-vm-service.sock) is shared across all profiles. The cowork-svc daemon is a stateless process spawner — per-profile isolation comes from the spawned claude CLI inheriting CLAUDE_CONFIG_DIR=~/.claude-NAME and using the per-profile --plugin-dir (which derives from Electron's app.getPath("userData")). One daemon serves them all.
Plugins, MCP servers, login state, and chat history from one profile are not visible in another. This is by design — profiles are independent installs, not views into shared state.
claude-desktop --delete-profile=workRemoves the three entry points listed above. User data is preserved at ~/.config/Claude-work and ~/.claude-work. Delete those manually if you really want a clean slate:
rm -rf ~/.config/Claude-work ~/.claude-workThe claude:// URL scheme is registered system-wide and points to the default profile's .desktop file. Without extra work, an SSO callback initiated from a named profile would launch the default profile and consume the auth token there, breaking login. claude-desktop-bin uses a small two-part routing mechanism to fix this:
- Marker on browser open. When a profile-active instance calls
shell.openExternal()on an auth-ish URL (matchesoauth,sso,auth,login,signin,callback, oraccounts), it writes a marker file at$XDG_RUNTIME_DIR/claude-desktop-pending-auth-<profile>containing the current timestamp. Implementation:patches/fix_profile_url_routing.nim. - Marker dispatch on callback. When the launcher is invoked with a
claude://URL and no explicit profile, it picks the most recent marker (less than 5 minutes old) and re-execs as that profile. Electron'ssecond-instanceevent delivers the URL to the running profile window.
You can log in to multiple profiles in any order, including multiple SSO logins, with one narrow caveat:
| Scenario | Result |
|---|---|
| Single profile (any kind) | ✅ |
| Default + named, log in to either first, in any order | ✅ |
| Multiple named profiles, SSO into each one sequentially | ✅ |
| Profile crashes mid-auth | ✅ Marker self-heals via 5-minute TTL |
| SSO into profile A, click an unrelated outbound link, then complete the SSO flow | |
| Two SSO flows in flight concurrently (browser tabs open in parallel for different profiles) |
The marker is 0600-permissioned and contains only a timestamp; nothing about the URL or session is persisted. To inspect what the launcher saw at routing time, run claude-desktop --diagnose while a marker is fresh.
If routing misbehaves, the escape hatch is to launch the URL explicitly:
claude-desktop --profile=NAME 'claude://<callback-url>'- ~200 MB disk per profile on cross-filesystem installs. See Why a copy? below.
- Auto-refresh after package upgrades. Hardlinks and reflinks snapshot the binary at creation; an upgrade replaces
/usr/lib/claude-desktop-bin/com.anthropic.claude-desktopwith a new file while the per-profile copy keeps pointing at the old version. The launcher detects this on every named-profile launch (canonical newer than per-profile, or per-profile non-executable on NixOS where store paths move, or any sibling symlink dangling) and re-materialises the binary plus refreshes the symlink mirror automatically. You'll seeclaude-desktop: refreshing stale per-profile binary (...)on stderr when this fires. To force-refresh manually:for p in $(claude-desktop --list-profiles | awk 'NR>1 {print $1}'); do claude-desktop --delete-profile="$p" claude-desktop --create-profile="$p" done
- MCP servers and plugins do not cross profiles. If you need the same MCP setup in two profiles, configure each independently.
- Concurrent SSO race as noted in the table above. Sequential SSO is reliable.
- Quick Entry GNOME hotkey is global, not per-profile.
claude-desktop --install-gnome-hotkeywrites a single keybinding bound toclaude-desktop --toggle, which targets the default profile's Quick Entry socket. Per-profile hotkeys would need separate accelerators and bindings — install them by hand if needed:gsettings-write a custom-keybinding slot whosecommandisclaude-desktop --profile=NAME --toggle. The launcher's--toggledoes honor the active profile when invoked with--profile=NAME. --profile=NAMEwithout--create-profileisolates state but not WM identity (the window joins the default profile's taskbar entry). The launcher prints a one-line hint pointing at--create-profile; suppress withCLAUDE_PROFILE_QUIET=1.- Wayland portal identity caveats on NixOS (already true single-instance) carry over to named profiles too.
Electron derives its WM_CLASS (X11) and Wayland app_id from the basename of /proc/self/exe, which the kernel always resolves through symlinks. A symlink at ~/.local/lib/claude-desktop/com.anthropic.claude-desktop-work pointing to /usr/lib/claude-desktop-bin/com.anthropic.claude-desktop would still report the system path as the exe — and the WM would group all profile windows as one app. That's how Chrome itself handles channels: google-chrome-stable and google-chrome-beta are separate copies, not symlinks.
To get distinct app identity per profile, --create-profile materialises a real, independently-named binary file. It tries (in order):
- Hardlink (
ln) — zero disk cost, only works on the same filesystem. - Reflink (
cp --reflink=always) — zero disk cost via copy-on-write, only on btrfs/xfs. - Plain copy (
cp) — ~200 MB per profile, fallback.
The Created profile output tells you which path was taken. Sibling files in the same directory (libffmpeg.so, .pak, locales/, resources/, version, etc.) are always symlinks back to the system install — Electron's RPATH=$ORIGIN and Chromium's resource loader expect them next to the binary, but they don't need to be per-profile. Sibling symlinks are shared across all profiles in ~/.local/lib/claude-desktop/.
| Variable | Values | Description |
|---|---|---|
CLAUDE_PROFILE |
name | Select a profile by name (alternative to --profile= or the per-profile symlink). Inherited by Electron and Claude Code so per-profile sockets and config dirs are picked up everywhere |
CLAUDE_PROFILE_QUIET |
1 |
Suppress the "no per-profile WM identity" hint that fires when CLAUDE_PROFILE is set without a matching --create-profile |
CLAUDE_CONFIG_DIR |
path | Override Claude Code's config dir. Auto-set by the launcher when CLAUDE_PROFILE is active; honored by @anthropic-ai/claude-code |
CLAUDE_DISABLE_GPU |
1, full |
Fix white screen on some GPU/driver combos (#13). 1 disables compositing only, full disables GPU entirely |
CLAUDE_USE_XWAYLAND |
1 |
Force XWayland instead of native Wayland |
CLAUDE_MENU_BAR |
auto, visible, hidden |
Menu bar visibility (default: auto, toggle with Alt) |
CLAUDE_DEV_TOOLS |
detach |
Open Chromium DevTools on launch |
CLAUDE_ELECTRON |
path | Override Electron binary path |
CLAUDE_APP_ASAR |
path | Override app.asar path |
ELECTRON_ENABLE_LOGGING |
1 |
Log Electron main process to stderr |
Set permanently in ~/.bashrc or ~/.zshrc, or pass per-launch: CLAUDE_DISABLE_GPU=1 claude-desktop
Runtime logs are written to ~/.config/Claude/logs/:
| Log File | Description |
|---|---|
main.log |
Main Electron process |
claude.ai-web.log |
BrowserView web content |
mcp.log |
MCP server communication |
# Tail logs in real-time
tail -f ~/.config/Claude/logs/main.log
# Search for errors across all logs
grep -ri 'error\|exception\|fatal' ~/.config/Claude/logs/
# Launch with DevTools + full logging
CLAUDE_DEV_TOOLS=detach ELECTRON_ENABLE_LOGGING=1 claude-desktop 2>&1 | tee /tmp/claude-debug.logDispatch lets you send tasks from the Claude mobile app to your Linux desktop. It's fully native — no VM, no emulation.
Claude Desktop spawns a long-running dispatch orchestrator agent (Anthropic internally calls it "Ditto"). This agent receives messages from your phone, delegates work to child sessions, and sends responses back via SendUserMessage.
Phone → Anthropic API → SSE → Claude Desktop → Ditto agent (via cowork-service)
├── Ditto calls SendUserMessage → response appears on phone
├── Ditto calls mcp__dispatch__start_task → child session spawned
│ └── Child does the work (code, files, research, etc.)
│ └── Child completes → Ditto reads transcript → Ditto replies to phone
└── Ditto has access to all SDK MCP servers (Gmail, Drive, Chrome, etc.)
On Windows/Mac, dispatch runs inside a VM. On Linux, claude-cowork-service handles it natively with several adaptations (stripping VM-only tool restrictions, path mapping, local present_files interception). See the Dispatch Support section in claude-cowork-service for full technical details.
The Quick Entry global hotkey (default Ctrl+Alt+Space) works out of the box on KDE Plasma, Hyprland, and Sway via xdg-desktop-portal GlobalShortcuts.
On GNOME, the portal silently fails to register the hotkey. Run once after install:
claude-desktop --install-gnome-hotkey # default Ctrl+Alt+Space
claude-desktop --install-gnome-hotkey '<Super>space' # or any acceleratorThis binds the key directly via gsettings, bypassing the portal. See wayland.md for details. Run claude-desktop --diagnose to check hotkey status.
Set your keyboard shortcut (GNOME, KDE, Sway, Hyprland) to:
claude-desktop --toggleThis toggles Quick Entry in ~5-25 ms via a Unix domain socket. If the app is not running, it starts it automatically.
xdg-desktop-portal resolves unsandboxed apps via the systemd user scope /
cgroup name. Starting with this release we launch under
app-com.anthropic.claude-desktop-*.scope (via systemd-run --user --scope)
and install the .desktop file under the matching reverse-URL name.
- Pinned taskbar entries: if you had the old
claude-desktop.desktoppinned, re-pin once after this update. - Custom X11 WM rules:
WM_CLASS/ Waylandapp_idchanged fromClaudetocom.anthropic.claude-desktop. Users with i3 / xmonad / awesome / bspwm / KWin rules matching the old class will need to update them. Named profiles (see Multiple Profiles) get a-<profile>suffix on this class so each profile shows up as a separate app — write WM rules accordingly. - NixOS: the Nix package materialises a renamed Electron binary (
com.anthropic.claude-desktop) for correct Waylandapp_id, but does not usesystemd-run --scope. Portal identity may not resolve on GNOME Wayland — use--install-gnome-hotkeyinstead. Other sessions (KDE, Hyprland, Sway, X11) are unaffected.
- Press Alt to toggle the app menu bar (Electron default)
- tweakcc — A great CLI tool for customizing Claude Code (system prompts, themes, UI). Same patching-JS-to-make-it-yours energy. Thanks to the Piebald team for their work.
This is an unofficial community project for educational and research purposes. Claude Desktop is proprietary software owned by Anthropic PBC.
This repository contains only build scripts and patches — not the Claude Desktop application itself. The upstream binary is downloaded directly from Anthropic during the build process.
This project is not affiliated with, endorsed by, or sponsored by Anthropic. "Claude" is a trademark of Anthropic PBC.

















