Skip to content

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

:art: Improve Linux Wayland compatibility https://github.com/siyuan-note/siyuan/issues/17141

Danielda6720e8f906
diff --git a/app/electron/main.js b/app/electron/main.js
index 44b27420be..6090d5dbb8 100644
--- a/app/electron/main.js
+++ b/app/electron/main.js
@@ -63,9 +63,8 @@ if (!app.requestSingleInstanceLock()) {
}
if (process.platform === "linux") {
- // Linux 平台回退到 x11/XWayland 以解决某些系统上无法输入中文的问题
- // 如果需要使用原生 Wayland 可以通过启动参数 --ozone-platform=wayland 进行覆盖
- app.commandLine.appendSwitch('ozone-platform', 'x11');
+ app.commandLine.appendSwitch("enable-wayland-ime");
+ app.commandLine.appendSwitch("wayland-text-input-version", "3");
}
app.setAsDefaultProtocolClient("siyuan");