dsh-restart-now
Restart DSH Desktop from the sidebar or Settings. After confirmation, closes and relaunches the app; only active in the desktop host. · DSH 桌面版一键重启:从侧栏或设置页发起,确认后关闭并重新拉起应用;仅在桌面宿主生效。 适合频繁调整配置或安装插件,需要快速重启桌面客户端的用户。
설치
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:Mr54233/dsh-restart-now配置
设置页「重启应用」区块可直接编辑并保存(落 restart-now.config.json);
也可在 profile 的 cordis.patch.yml 条目 config 块中设置。
优先级:代码默认 < patch 条目 < 配置文件(UI 保存写入文件层)。
| 键 | 默认 | 说明 |
|---|---|---|
allowRestart | true | 总开关,false 时动作口返回 403 disabled |
confirm | true | 点击后二次确认 |
hideSidebarButton | false | 隐藏侧栏底部重启入口(保存后立即生效) |
delayMs | 50 | 应答后到杀树的延时(毫秒,0–60000) |
exePath | '' | exe 绝对路径;留空时从当前安装位置自动推导 |