dsha-desktop-link

在侧栏底部加一个按钮,点一下打开桌面版 DSH 的 Web GUI——手机上交给系统浏览器,电脑上开新标签页。目标地址取自插件配置、DSH_DESKTOP_URL 或 ~/.dsh/desktop-url.txt,取不到时回退到 dsh-remote-web-ui 发布的固定中继地址;什么都没配时按钮置灰并给出提示。另有一个齿轮按钮,可在界面里把地址存进 ~/.dsh/desktop-url.txt;手机上如果没单独配置点击地址,点按钮时会向本机配对服务(/api/pair/issue)申请一次性配对链接再打开;插件的 HTTP 路由(/api/desktop-link/…)没有 DSH 的访问检查。

插件介绍

在侧栏底部加一个按钮,点一下打开桌面版 DSH 的 Web GUI——手机上交给系统浏览器,电脑上开新标签页。目标地址取自插件配置、DSH_DESKTOP_URL 或 ~/.dsh/desktop-url.txt,取不到时回退到 dsh-remote-web-ui 发布的固定中继地址;什么都没配时按钮置灰并给出提示。另有一个齿轮按钮,可在界面里把地址存进 ~/.dsh/desktop-url.txt;手机上如果没单独配置点击地址,点按钮时会向本机配对服务(/api/pair/issue)申请一次性配对链接再打开;插件的 HTTP 路由(/api/desktop-link/…)没有 DSH 的访问检查。

安装方式

从 GitHub 安装

dsh plugin --profile web add github:lzlrt/dsha-desktop-link

Installing from GitHub runs the project's build script, which pnpm blocks until you allowlist it — run the command once and pnpm prints the exact key to add under `allowBuilds` in ~/.dsh/profiles/web/pnpm-workspace.yaml.

版本兼容情况

兼容性待确认。可前往项目文档查看支持版本。