mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-03-07 21:22:34 +01:00
🎨 Improve Linux Wayland compatibility https://github.com/siyuan-note/siyuan/issues/17141
Signed-off-by: Daniel <845765@qq.com>
This commit is contained in:
parent
0080deca32
commit
da6720e8f9
1 changed files with 2 additions and 3 deletions
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue