dshbase

插件目录 / Developer / dsh-plugin-restart-desktop

dsh-plugin-restart-desktop

未验证 ExploringBB

✓ 持续维护 基于 3 个官方 DSH 包

查看 GitHub ↗ ← 返回插件目录

1Stars
0Forks
0未关闭 issue
语言
2026-08-21最近推送
跨平台平台

功能简介

DSH Desktop sidebar restart button: orderly relaunch of DSH Desktop from the sidebar settings row (based on desktopActions.requestRestart).

我们的评价
未验证 — 尚未实测

DSH Desktop sidebar restart button: orderly relaunch of DSH Desktop from the sidebar settings row (based on desktopActions.requestRestart). 尚未验证——请自行安装测试。

「未验证」表示我们的自动化 CI 尚未安装过该插件。功能描述与版本兼容性均为作者声明。这不是安全审计,也不代表对第三方代码的背书。

你是插件作者? 想拿到「已验证」标签——提交你自己的验证证据(截图、日志或短视频),我们审核通过后即改为「已验证」。

提交验证证据 ↗

README

简体中文 | English

dsh-plugin-restart-desktop

一个极简的 DSH Desktop 插件:只做一件事——在侧边栏左下角添加一个「重启Desktop」按钮,点击后有序重启 DSH Desktop。

除此之外没有任何其他功能。代码量小、行为单一,非常适合:

  • 验证插件安装流程:profile 注册 → pnpm install → 重启生效,装完立刻能在界面上看到按钮;
  • 作为自研插件的最小示例:参考它的五件套包结构、cordis.patch.ymlinsert 补丁、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 的 dependenciesdsh.profile.bundles

    // ~/.dsh/profiles/desktop/package.json
    "dependencies": { "dsh-plugin-restart-desktop": "file:F:/path/to/dsh-plugin-restart-desktop" },
    "dsh": { "profile": { "bundles": [ "@deepseek-ai/dsh-base", "@deepseek-ai/dsh-web-app", "dsh-plugin-restart-desktop" ] } }
    
  2. 在 profile 目录执行 pnpm install

  3. 重启 DSH Desktop,左下角设置行即可看到「重启Desktop」按钮。

License

MIT。见 LICENSE。English docs: README.en.md

安装

🧩 让 Agent 自动装(推荐)

装一次目录插件,之后本站所有插件都能让 DeepSeek Harness 自动找、自动装:

dsh plugin add dshbase-catalog

然后对 agent 说「帮我装 dsh-plugin-restart-desktop」,它会在目录里找到并自动安装。文档:dshbase-catalog · 已验证场景包

该插件是 GitHub 源码(未发 npm)——直接从仓库装:

Web profile:

dsh plugin --profile web add github:ExploringBB/dsh-plugin-restart-desktop

Headless(CLI)profile:

dsh plugin --profile headless add github:ExploringBB/dsh-plugin-restart-desktop

实测报告

尚未 L3 验证——若已跑过,见下方失败备注。

状态:pending · 最近测试 2026-08-26
备注:验证: runtime-fail 浏览全部待验证失败 →
安全:尚未扫描——我们的每日静态扫描将很快覆盖它。

分享徽章

Developer 里更多

浏览全部 7795 个插件 →