Introduction¶
DeepSeek Harness (DSH) Desktop displays the icon embedded in the exe located in the installation directory on the taskbar and in shortcuts. If you want to change it to your own .ico, or occasionally revert to the official default, you typically need to manually find PE resource editing tools, back up the exe yourself, handle Windows’ file locking on running executables, and deal with the issue of the shell still displaying the old bitmap after modification. The following introduces the community plugin dsh-icon-changer (Maintainer: flycucu, Category: “Fun Dress-up”): It allows you to select, upload, apply, and revert icons within the DSH settings page, with the plugin handling the rewriting and cache refresh after the application exits.
What is this¶
dsh-icon-changer is a DSH Application Icon Changer plugin: It replaces the embedded icon of the official DeepSeek Harness.exe with a .ico you select, and also supports one-click restoration of the official default from a backup created before the first change. The repository description notes “Plugin code generated by DeepSeek Harness”; the current package version is 0.3.1, licensed under MIT, targeting Windows Desktop (Node >=18).
The plugin is split into two halves and introduces no npm dependencies:
- Host half (
lib/index.js, running in the DSH main process) mounts the HTTP API viactx.webServer; - Client half (
lib/client.js) registers a card on the settings page, requiring no manual URL entry.
Community Directory Page: flycucu/dsh-icon-changer
Source Code & Docs: GitHub
Why “Quit Before Changing” is Necessary¶
Windows locks running executable files, and the plugin runs inside the exe process it intends to modify. Therefore, the API does not modify the file on the spot but:
- Validates the request and writes the task to
state.jsonandpending-job.json; - Launches a worker via WMI (
Win32_Process.Create) — child processes spawned directly would terminate along with the application’s job object, whereas processes created via WMI run under thewmiprvse.exename and can continue after the application exits; - The worker (
bin/apply-icon.ps1) polls until the exe is released; - Backup → Rewrite icon using rcedit (
tools/rcedit-x64.exe, 2.0.0) → Compare icon fingerprints of before/after/target; - If the fingerprint hasn’t changed and doesn’t match the target, automatically revert and report failure; if successful, (optionally) relaunch the application;
- Refresh shell icon cache: The worker runs
ie4uinit.exe -showfirst, and after the app restarts, the host side callsbin/refresh-shell.ps1for a full refresh (including stopping Explorer, deletingiconcache_*, etc.).
Changing the icon involves an application restart, which is a platform limitation. If only the exe is modified without refreshing the cache, the resources may contain the new icon, but the desktop might still display the old one; the documentation notes that simply restarting Explorer is insufficient and the icon cache database must be deleted.
Core Features¶
Settings Page (Recommended)¶
Open Settings → Application Icon:
- Select Icon: Built-in
assets/whalemaid.ico(UI label “Whale Girl (Preset)”),assets/original.ico(“Original”) listed alongside uploaded icons; click to select; - Upload .ico: The host validates the legal ICONDIR header; non-ico files are rejected (
not-an-ico); upload limit is 4 MiB. You can configure a companion file<name>-tray.icoin$DSH_HOME/icon-changer/icons/; the tray prioritizes this file; - Apply Selected Icon and Restart: Queued application exits, worker rewrites, then auto-relaunches;
- Revert to Official Icon: Restore from the backup created before the first change;
- Delete: Only unused externally uploaded icons show a delete option; built-in/original and in-use icons cannot be deleted (
builtin-readonly/in-use).
The card top persistently displays “Current Icon”, defaulting to align with the icon id corresponding to state.applied.icon; target exe path, queued tasks, and last result are also displayed. During the change process, a PowerShell window may pop up showing progress. Do not manually close this window (closing it terminates the task); long-wait tasks run silently with -WindowStyle Hidden.
Standalone Page (Backup)¶
Access the Web GUI on the same port:
http://127.0.0.1:<port>/icon-changer
Buttons correspond to settings cards. This path can be used if the UI malfunctions.
HTTP API (Local)¶
| Method | Path | Description |
|---|---|---|
| GET | /api/icon-changer/status |
exe / backup / current icon / pending task / last result |
| GET | /api/icon-changer/icons |
Built-in and uploaded list |
| GET | /api/icon-changer/log?lines=200 |
Tail of helper.log |
| GET | /api/icon-changer/preview/<id> |
Icon preview bytes |
| POST | /api/icon-changer/upload |
{name, b64} |
| POST | /api/icon-changer/apply |
{icon, restart, targets} |
| POST | /api/icon-changer/restore |
{restart, targets} |
| DELETE | /api/icon-changer/icon/<id> |
Delete uploaded icon |
| POST | /api/icon-changer/clear |
Clear stuck queued tasks |
Icon IDs look like builtin:whalemaid.ico or user:my_icon.ico. Write operations perform same-origin checks (returns 403 if Origin and Host do not match). Routes listen on 127.0.0.1. The documentation notes that since there is no Web GUI token, processes of the same machine and user can call /apply.
Installation and Enablement¶
The repository does not provide a one-click installation script. The steps are “Get code locally + Mount into desktop profile”. The README provides the following method to get the code (please back up package.json before modifying it, as it is a critical startup configuration):
git clone https://github.com/flycucu/dsh-icon-changer.git "$env:USERPROFILE\.dsh\plugin-src\dsh-icon-changer"
Then create two links:
- Mount the plugin directory into the profile:
mklink /J "%USERPROFILE%\.dsh\profiles\desktop\node_modules\dsh-icon-changer" "<plugin_dir>"
- Add the dependency
"dsh-icon-changer": "link:<plugin_dir>"to%USERPROFILE%\.dsh\profiles\desktop\package.json, and writedsh-icon-changerintodsh.profile.bundles(The host loads it via bundles into the Loader, and the client scans via the roster).
You must restart DeepSeek Harness after modifying package.json; the client card is only registered during startup scanning, so the “Application Icon” entry will not appear without a restart.
Uninstallation: Remove from dsh.profile.bundles and dependencies, then delete the junction.
Syntax check (in the plugin directory):
npm run check
Data Directory and Manual Rollback¶
| Path | Content |
|---|---|
$DSH_HOME/icon-changer/state.json |
Tasks and results |
$DSH_HOME/icon-changer/icons/ |
Uploaded icons |
$DSH_HOME/icon-changer/backup/DeepSeek Harness.exe.orig |
Original exe backup created before the first change (created only once) |
$DSH_HOME/icon-changer/helper.log |
Unified log for host / WMI launcher / worker |
$DSH_HOME/icon-changer/pending-job.json |
Worker task description |
For troubleshooting, check $DSH_HOME/icon-changer/helper.log first (Host [host], Launcher [wmi-spawn], Worker timestamps). If the plugin is unavailable, you can restore the entire file using the backup:
Copy-Item "$env:USERPROFILE\.dsh\icon-changer\backup\DeepSeek Harness.exe.orig" `
"<your_install_dir>\DeepSeek Harness.exe" -Force
Use Cases and Notes¶
Suitable for: Users on Windows using DSH Desktop who want to personalize taskbar/shortcut icons and accept the flow of “App Restart + possible brief worker window pop-up”; Fun dress-up needs (e.g., the preset “Whale Girl” icon).
Be Aware:
- The plugin runs with the current DSH process permissions and will rewrite the exe in the local installation directory; you should read the source code and the MIT license before installation to judge whether you trust the maintainer and the repository content.
- Rewriting the exe will break the code signature of that file (if it was originally signed), which may trigger warnings from SmartScreen, etc.; the backup is written before the first change, and changing icons multiple times will not overwrite the backup with an intermediate state.
- The API trust model is “Same User, Same Machine”: Local processes can call
/apply, and cross-origin web pages are blocked by the Same-Origin Policy, but it cannot prevent malicious local programs. - If a task gets stuck, you can click “Cancel Queue” or apply again (new request overwrites the old queue); the host attempts to resume stalled tasks after the worker exits abnormally. The documentation has specific explanations for pitfalls such as QuickEdit causing console process suspension and Explorer icon cache issues; refer to
helper.logwhen encountering problems.
The DSH ecosystem emphasizes “Everything is a Plugin”; Community directories like SkillHub are independent sites and have no official affiliation with DeepSeek / High-Flyer.
Conclusion¶
dsh-icon-changer consolidates “Backup exe → rcedit change icon → Verify fingerprint → Refresh shell cache → Optional restart” into a few operations on the settings page, and handles Windows file locking and WMI worker lifecycle. If you need to change the icon for the Desktop client without manually dealing with the PE toolchain, you can follow the README to mount it into the desktop profile and then use it via Settings → Application Icon.
- Directory Page: https://www.skillhub.cn/plugins/flycucu/dsh-icon-changer
- GitHub: https://github.com/flycucu/dsh-icon-changer