Add Electron 31/Chromium 126 workaround flag

See:https://issues.chromium.org/issues/331796411
This commit is contained in:
Vicente Maroto Garzón 2024-08-08 19:57:59 +02:00
parent e0453418bd
commit 43a4f272e7
No known key found for this signature in database
GPG key ID: 824EA8DD0F41F894

View file

@ -42,6 +42,12 @@ function init() {
app.commandLine.appendSwitch("disable-smooth-scrolling");
}
// Disable multiplane format for software video decoding on Linux due to bug on Electron 31/Chromium 125
// https://issues.chromium.org/issues/331796411
if (process.platform == "linux") {
disabledFeatures.push("UseMultiPlaneFormatForSoftwareVideo")
}
// disable renderer backgrounding to prevent the app from unloading when in the background
// https://github.com/electron/electron/issues/2822
// https://github.com/GoogleChrome/chrome-launcher/blob/5a27dd574d47a75fec0fb50f7b774ebf8a9791ba/docs/chrome-flags-for-tools.md#task-throttling