dsh-reloader: Hot Reload and One-Click Restart for Desktop DSH

dsh-reloader is a DSH client plugin maintained by kuroshio4396, designed for the Electron desktop version. It provides "Reload & Refresh": reconciling profiles in the HMR queue, reloading plugins with disk changes without closing the program, and refreshing the interface; as well as "Auto Restart": after the main process exits, an independent restarter launched by WMI relaunches the exe. The entry point is Settings → Reload & Restart. To install, use dsh.cmd under the desktop profile, which supports linking local paths or git dependencies. The source mode dsh web only supports reload. It is suitable for plugin development and debugging scenarios. Please review the source code and the MIT license before installation.

Read More
dsh-reloader: One-click Restart Plugin for DSH Web Interface

`dsh-reloader` is an MIT-licensed DSH plugin designed to address the issue where the `dsh web` process must be manually restarted after installing or updating plugins for changes to take effect. By encapsulating the `dsh_reload` tool, the plugin implements an automated restart process: it waits 6 seconds, then uses `lsof` and `ps` commands to precisely locate and terminate the process listening on port 3080 with 'dsh' in its command line; it then waits up to 15 seconds to ensure the port is released, and finally uses `nohup` to restart `dsh web` in the background, writing logs to `~/.dsh/web.log`. Users only need to install the plugin (supporting GitHub or local source installation) and issue the "help me reload" command in DSH to complete the task.

Read More