wangbofan/dsh-restart-button ↗★ 0

dsh-restart-button

DSH desktop titlebar menu: a Restart button that closes and relaunches the whole app (shell + Host). 适合在开发或调试插件时需要频繁重启DSH桌面端的用户。

패키지
dsh-restart-button
호환성
미검증
버전
1.0.2
라이선스
MIT
최근 업데이트
2026. 10. 14.

같은 패키지 이름의 다른 저장소

설치

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:wangbofan/dsh-restart-button

使用

标题栏菜单栏:应用 | 编辑 | 重启 → 点「重启」→ 确认气泡 → 应用关闭并自动重新打开。

位置说明:原生「应用」下拉的菜单项列表在 Electron 主进程内,插件无法插入菜单项,所以按钮做在菜单栏上、紧邻「应用」。

配置

环境变量作用
DSH_RESTART_BUTTON_DRY_RUN=1演练模式:助手只把将要终止的 PID 与重启命令行写进日志,不真的杀进程。也可以不设环境变量、临时用 POST /restart-button/restart?dryRun=1 演练一次

代码内常量(host.js):ROUTE_PREFIX = "/restart-button"、HELPER_DELAY_MS = 1500。