TheColdWorld/dsh-wsl-keepalive ↗★ 0
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.
安装
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:TheColdWorld/dsh-wsl-keepalive说明文档
阅读完整 README ↗三、配置 ~/.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 地址: