In the DSH environment, after installing a new plugin or skill, services usually need to be manually restarted for the changes to take effect. This increases context switching costs during development.
dsh-quick-restart is a DSH plugin maintained by Xyz10088. It adds a “Refresh DSH” button at the bottom of the sidebar. When clicked, it triggers a service restart and automatically reloads the page after the service recovers, avoiding manual operations.
Core Features¶
- Sidebar Button: A “Refresh DSH” button appears at the bottom of the sidebar, with an online status light (green = online / red = offline).
- No Confirmation Trigger: A single click triggers it directly, without secondary confirmation; a waiting prompt appears after clicking.
- Automatic Reload: The page reloads automatically after the service recovers, without manual refresh.
- Avoid Duplicate Opening: The restart command includes
--no-open, so no extra browser page is opened. - Health Check: Probes service health status via
/dsh-healthevery 5 seconds.
Installation and Activation¶
Use the following command to install the plugin:
dsh plugin --profile web add github:Xyz10088/dsh-quick-restart#main
After installation, restart dsh web, and a “Refresh DSH” button will appear at the bottom of the sidebar.
Typical Usage¶
- Install the Plugin: Execute the installation command above.
- Restart the Service: Restart
dsh web, and a “Refresh DSH” button appears at the bottom of the sidebar. - Trigger Refresh: Click the “Refresh DSH” button in the sidebar.
Notes¶
- Script Path: The default restart script path is defined in
lib/index.js(RESTART_SCRIPTconstant) and defaults toC:\Users\Administrator\.dsh\desktop-launcher\restart-dsh-web.ps1. It may need adjustment based on the current machine. - Permissions and Source Code: It is recommended to check the source code and license (MIT) before installation.
- Uninstall: To uninstall, use
dsh plugin --profile web remove dsh-quick-restart.
Summary¶
For developers who need to frequently test new plugins or skills, this plugin provides convenient one-click restart and reload capabilities through the sidebar button.
- GitHub repository: https://github.com/Xyz10088/dsh-quick-restart
- Plugin directory: https://www.skillhub.cn/plugins/Xyz10088/dsh-quick-restart