error: profile "desktop" is managed exclusively by the Electron application
The desktop profile belongs to the desktop app. The command line refuses to touch it, so this is a routing error, not a broken install.
It shows up the moment the CLI parses the profile name, before any plugin loads: dsh --profile desktop, dsh plugin --profile desktop, dsh --profile desktop --dump-config.
Why the CLI refuses
Two processes writing one profile is how settings and session indexes get corrupted. The desktop app creates desktop for itself and expects to be its only writer, so the command line stops at the door instead of competing.
Nothing is wrong with the profile itself. Read it from the app, or leave it alone.
Using the desktop app for that profile
Start the desktop app and do the work there. Its own logs and settings live under the same profile name, so anything you would have run from the CLI belongs in its interface.
Using the command line anyway: pick another profile
Command-line work wants its own profile. Name one, and boot it:
dsh --profile work --versionFixing scripts that hardcode desktop
Scripts and shortcuts copied from the desktop app often carry --profile desktop. Replace that argument with the profile the script should own, and keep desktop out of automation.
If you need the same plugins, install them into the new profile:
dsh plugin --profile work add @deepseek-ai/dsh-web-appWhat not to do
Do not rename or delete the desktop profile directory to get around the check. The app looks the profile up by name; a renamed directory is a new empty profile to it, and the sessions under the old path are no longer where it looks.
Do not point two terminals at the same profile to "share" a session. The profile is not a lock; it is a directory that assumes one writer.
How you know it is fixed
The error line is gone and the command reaches the work it was asked to do: dsh --profile work --version prints a version, or the desktop app opens with its own sessions intact.
Common questions
Can I enable CLI access to the desktop profile?
No. There is no flag for it; the check runs before any configuration is read.
Does the new profile start empty?
It starts with the default layout for the profile you boot. Plugins and settings are per profile, so install what you need there.
Are my desktop sessions lost?
No. They stay under the desktop profile, which the app still owns.