/desktop (and /app) fails on Windows when Claude Desktop is the MSIX package: "Failed to open Claude Desktop"
Summary
/desktop (and its alias /app) always fails with "Failed to open Claude Desktop. Please try opening it manually." on Windows, even when Claude Desktop is installed, running, and signed in. The cause appears to be that /desktop tries to launch the standalone Desktop build, but current Claude Desktop for Windows ships only as an MSIX/AppX package, which has no standalone executable at the path /desktop looks for.
Environment
- Claude Code CLI: v2.1.178
- OS: Windows 11 Pro (build 10.0.22631)
- Claude Desktop: MSIX/AppX package
Claude_1.13576.0.0_x64__pzs8sxrjxfjjcinC:\Program Files\WindowsApps\...— running, signed in, on a Claude subscription /rc(remote control) works fine; only/desktopfails
What happens
Running /desktop immediately prints:
Failed to open Claude Desktop. Please try opening it manually.
...even though Desktop is installed, running, and signed in — none of the documented failure conditions apply.
Root cause (from investigation)
- The Claude Code binary contains the string
AnthropicClaudeimmediately adjacent to the "Failed to open Claude Desktop" string, indicating/desktoplooks for the standalone build at%LOCALAPPDATA%\AnthropicClaude\Claude.exe. - Current Claude Desktop for Windows — both the Microsoft Store install and the claude.com web installer — installs as an MSIX/AppX package (verified via
Get-AppxPackage Claude:SignatureKind: Storefor the Store build,Developerfor the web installer). There is no%LOCALAPPDATA%\AnthropicClaude\Claude.exeand no%LOCALAPPDATA%\Programs\claude. The app lives in protectedWindowsAppsand is launchable only via its AppUserModelID (Claude_pzs8sxrjxfjjc!Claude) or theclaude://URI protocol. - So
/desktop's launcher cannot locate/launch the MSIX Desktop, producing "Failed to open."
Reproduction
- On Windows, install Claude Desktop via the Microsoft Store or the claude.com web installer (both produce an MSIX package; no standalone
.exebuild is shipped anymore). - In Claude Code (CLI), run
/desktop(or/app). - Observe: "Failed to open Claude Desktop. Please try opening it manually." — even with Desktop installed, running, and signed in.
Evidence / confirms the diagnosis
explorer.exe shell:AppsFolder\Claude_pzs8sxrjxfjjc!Claudelaunches the MSIX Desktop correctly.- After clearing a stale
HKCU\Software\Classes\claudeorphan key (which hadURL Protocolbut noshell\open\command), theclaude://protocol resolves to the MSIX app via its package-declared handler.
Suggested fix
When the standalone AnthropicClaude\Claude.exe path is absent, have /desktop launch Desktop via its AppUserModelID (shell:AppsFolder\<AUMID>) or the claude:// protocol, so it works with the MSIX/Store-packaged Desktop (now the only Windows distribution).
This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗