diff --git a/src/main/index.js b/src/main/index.js index 0ca9917a3c86..629ef69f04b1 100644 --- a/src/main/index.js +++ b/src/main/index.js @@ -166,9 +166,11 @@ function runApp() { let mainWindow let startupUrl - app.commandLine.appendSwitch('enable-accelerated-video-decode') - app.commandLine.appendSwitch('enable-file-cookies') - app.commandLine.appendSwitch('ignore-gpu-blacklist') + if (process.platform === 'linux') { + // Enable hardware acceleration via VA-API + // https://chromium.googlesource.com/chromium/src/+/refs/heads/main/docs/gpu/vaapi.md + app.commandLine.appendSwitch('enable-features', 'VaapiVideoDecodeLinuxGL') + } // Work around for context menus in the devtools being displayed behind the window // https://github.com/electron/electron/issues/38790