TheColdWorld/dsh-wsl-keepalive0

wsl-keepalive

WSL keep-alive toggle (static plugin): provides a dbus-daemon keep-alive toggle under WebUI Settings → General; the Host exposes status/set via /api/wsl-keepalive/* and the config is stored in ~/.dsh/wsl-keepalive.json.

包名
wsl-keepalive
版本
0.1.0
许可证
MIT
最近更新
2026年8月17日

安装

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:TheColdWorld/dsh-wsl-keepalive

三、配置 ~/.dsh/wsl-keepalive.json

插件启动时读取;字段缺失或文件缺失时按空值处理,并在需要时自动创建 / 写入。

{
  "wsl-dist-name": "",
  "wsl-exec-path": "/mnt/c/Windows/System32/wsl.exe"
}
字段类型含义
wsl-dist-name字符串目标发行版命名。非空时启动命令追加 -d ${wsl-dist-name}为空时使用默认发行版
wsl-exec-path字符串wsl.exe 在 Linux 文件系统下的绝对路径。为空时启动期自动探测 /mnt/c/Windows/System32/wsl.exe,存在则写入配置;两者皆无则报错进入错误态

方式一:使用dsh plugin add安装

内容仓库位于 https://github.com/TheColdWorld/dsh-wsl-keepalive.git,可通过仓库地址直接安装:


#    或使用显式 git 地址: