Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:bug: Can't show windows on some Linux desktop systems https://github.com/siyuan-note/siyuan/issues/17141

Danielc449ca7ed8f0
diff --git a/app/electron/main.js b/app/electron/main.js
index 13fd508138..675fe36c06 100644
--- a/app/electron/main.js
+++ b/app/electron/main.js
@@ -71,11 +71,12 @@ if (process.platform === "linux") {
"KYLIN", // 麒麟备用标识
"NEWSTART" // 中兴新支点
].some(key => desktop.includes(key));
- const isKylinFile = fs.existsSync("/etc/kylin-release");
+ const isKylinFile = fs.existsSync("/etc/kylin-version");
const isUosFile = fs.existsSync("/etc/uos-version");
- const isDeepinFile = fs.existsSync("/etc/deepin-release");
+ const isDeepinFile = fs.existsSync("/etc/deepin-version");
if (isChineseOS || isKylinFile || isUosFile || isDeepinFile) {
- app.commandLine.appendSwitch("ozone-platform", "x11");
+ app.commandLine.appendSwitch("enable-wayland-ime");
+ app.commandLine.appendSwitch("wayland-text-input-version", "3");
}
}