dsh-bili-scroll
c1overzz
DSH 插件:每天替你刷一轮 B站,读字幕挑出值得的、写一份日报,值得的 @ 你
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:lalalawang/dsh-quit-restart
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
Adds one row to the DSH sidebar: Quit and restart DSH. Click it, the app closes and comes back on its own.
No tray menu, no hunting for the shortcut again.
In the app: Plugins → Add plugin, then enter dsh-quit-restart (npm) or https://github.com/lalalawang/dsh-quit-restart.
Restart DSH once afterwards. Bundles are only scanned at startup.
The last row of the sidebar, next to Settings. Click it: the button changes to "Quitting…", the page drops, the app starts again.
Nothing to configure.
On Windows it writes a one-off VBScript to %TEMP% and launches it with wscript.exe, detached, so no console window appears. The script does three things:
taskkill on two processes: the Electron main process and the host process this plugin runs inside. Killing only the main process is not enough: the host is its child, it keeps the port, and the new instance cannot start.ELECTRON_RUN_AS_NODE (otherwise the new process starts as node and shows no window), then launches the original exe.The script deletes itself when done.
| Route | Purpose |
|---|---|
GET /api/quit-restart/status |
Resolved exe path, where it was found, main PID, whether the platform is supported |
POST /api/quit-restart/restart |
{"dryRun": true} resolves only; otherwise restarts |
Both accept loopback requests only, and when an Origin header is present it must match the serving host, otherwise 403. Non-Windows returns 501.
Normally it is derived from the parent process image, so nothing is hardcoded.
If that fails, set DSH_QUIT_RESTART_APP_EXE to the full path.
Logs land in %TEMP%\dsh-quit-restart-<pid>-<timestamp>.log, one line per stage.
A "Restart failed" button usually means the kill step was denied. Check the last line of the newest log.
MIT
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: 无有效分类标签。