ExploringBB/dsh-plugin-restart-desktop
ExploringBB★ 1JavaScript最后同步: 2026-08-21
DSH Desktop sidebar restart button: orderly relaunch of DSH Desktop from the sidebar settings row (based on desktopActions.requestRestart).
README 摘要
简体中文 English dsh-plugin-restart-desktop 一个极简的 DSH Desktop 插件:只做一件事——在侧边栏左下角添加一个「重启Desktop」按钮,点击后有序重启 DSH Desktop。 除此之外没有任何其他功能。代码量小、行为单一,非常适合: - 验证插件安装流程 :profile 注册 → pnpm install → 重启生效,装完立刻能在界面上看到按钮; - 作为自研插件的最小示例 :参考它的五件套包结构、 cordis.patch.yml 的 insert 补丁、host/client 双侧与 Typert Remote 写法。 界面预览 上图:中文语言下的按钮效果(位于左下角设置行、齿轮右侧,悬停显示「重启Desktop」提示)。 切换为 English 后的效果见 英文版 README 中的截图。 功能一览 - 按钮注入在侧边栏底部 设置行 内(齿轮右侧),永远位于可视区,不会因脚部操作堆叠而被裁剪; - 点击弹 二次确认框 ,确认后调用桌面主进程 desktopActions.requestRestart() (Electron relaunch) 有序重启 ,并显示「正在重启…」等待层; - 文案接入 DSH 语言系统 (设置 → 通用设置 → 语言),中文 / English 自动切换、 切换立即生效 ; - 仅 desktop profile 生效;headless web profile 下返回 { ok: false } 并弹出友好错误提示。 安装(desktop profile) 本插件为桌面专用,只需注册进 desktop profile: 1. 把本目录加入 desktop profile 的 dependencies 与 dsh.profile.bundles : 2. 在 profile 目录执行 pnpm install ; 3. 重启 DSH Desktop,左下角设置行即可看到「重启Desktop」按钮。 License MIT。见 LICENSE。English docs: README.en.md。
在 GitHub 查看完整 README →分类
Enhancement suite for Gemini, AI Studio, Claude & ChatGPT — plus a prompt manager for any web UI, DeepSeek Harness included. / 面向 Gemini、AI Studio、Claude 与 ChatGPT 的增强套件;提示词管理器可用于任意 Web UI,含 DeepSeek Harness。
★ 19,780
zhu1090093659/dsh-web-uiPlugin and skin collection for DeepSeek Harness (DSH) Web UI - task board, git graph, right-side panel, remote mobile UI, pet, live token stats, and skin center.
★ 5,521
omdsh-dev/DSH-better-sidebar开放的侧边栏底座,支持三方拓展注册新侧边栏页面。内置文件渲染编辑/终端/侧边对话/Git/子代理页面 | Open sidebar foundation, supports third-party extensions to register new sidebar pages. Built-in file rendering/editing, terminal, side chat, Git, and sub-agent pages.
★ 2,621