mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-03-07 21:22:34 +01:00
🐛 Can't show windows on some Linux desktop systems https://github.com/siyuan-note/siyuan/issues/17141
Signed-off-by: Daniel <845765@qq.com>
This commit is contained in:
parent
10dfb0855f
commit
c449ca7ed8
1 changed files with 4 additions and 3 deletions
|
|
@ -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");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue