diff --git a/app/electron/main.js b/app/electron/main.js index efb0729ad..b019add3b 100644 --- a/app/electron/main.js +++ b/app/electron/main.js @@ -652,6 +652,7 @@ app.commandLine.appendSwitch("disable-web-security"); app.commandLine.appendSwitch("auto-detect", "false"); app.commandLine.appendSwitch("no-proxy-server"); app.commandLine.appendSwitch("enable-features", "PlatformHEVCDecoderSupport"); +app.commandLine.appendSwitch("xdg-portal-required-version", "4"); // Support set Chromium command line arguments on the desktop https://github.com/siyuan-note/siyuan/issues/9696 writeLog("app is packaged [" + app.isPackaged + "], command line args [" + process.argv.join(", ") + "]");