Signed-off-by: Daniel <845765@qq.com>
This commit is contained in:
Daniel 2026-03-06 11:31:16 +08:00
parent 0080deca32
commit da6720e8f9
No known key found for this signature in database
GPG key ID: 86211BA83DF03017

View file

@ -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");