Add workaround to fix Linux GTK version for electron

This commit is contained in:
ayumi-signal
2025-05-05 11:39:48 -07:00
committed by GitHub
parent 6d4fb10c27
commit 511486c894

View File

@@ -1986,6 +1986,11 @@ const featuresToDisable = `HardwareMediaKeyHandling,${app.commandLine.getSwitchV
)}`;
app.commandLine.appendSwitch('disable-features', featuresToDisable);
if (OS.isLinux()) {
// https://github.com/electron/electron/issues/46538#issuecomment-2808806722
app.commandLine.appendSwitch('gtk-version', '3');
}
// <canvas/> rendering is often utterly broken on Linux when using GPU
// acceleration.
if (DISABLE_GPU) {