D
@y2zyyr/dsh-restart-button
v0.1.0 · 0 天前发布
Adds a Restart DSH button to DSH Desktop Settings → General (通用设置).
README
Restart DSH
Adds a Restart DSH button to DSH Desktop → Settings → General (通用设置). It sits
directly below「繁忙时 Enter 键行为」and lets you restart the DSH Desktop application
with one click, using DSH's official graceful restart facility.
Features
settings.general.item)(
ctx.desktopRuntime.requestRestart() → graceful Cordis teardown +app.relaunch() + app.exit(0)) — no shell, no kill, no sudoModal + Button primitives) before restarting「正在重启…」and is disabled
--dsw-alias-*) — no hardcoded colors版本兼容矩阵
| DSH 版本 | 状态 | 说明 |
|---|---|---|
dsh@0.1.0-rc.6 | ✅ 兼容 | cordis patch ✅ |
dsh@0.1.0 | ✅ 兼容 | 标准 patch ✅ |
dsh@0.2.0 | ⚠️ 待验证 | 待实测(API 可能在变) |
dsh@0.3.0+ | ❓ 未知 | 尚未发布 |
💡 兼容矩阵每周末自动跑实测,欢迎 PR 修正
元数据
- License
- MIT
- npm
- @y2zyyr/dsh-restart-button
- Repo
- git+https://github.com/y2zyyr/dsh-restart-button.git
- Engines
{}- Weekly DL
- 0
- Monthly DL
- 0
- dsh.bundle
{"bundle":{"patch":"./cordis.patch.yml"},"client":{"inject":["@deepseek-ai/dsh-client-runtime","@deepseek-ai/dsh-client-locale","@deepseek-ai/dsh-client-ui-slots","@deepseek-ai/dsh-client-ui-primitives"],"platform":"web"}}