Disable hardware acceleration on linux

This commit is contained in:
Fedor Indutny 2022-09-27 17:55:42 -07:00 committed by GitHub
parent ffac571dd8
commit e79d8c1fd6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1614,6 +1614,12 @@ app.commandLine.appendSwitch('disable-features', 'HardwareMediaKeyHandling');
// If we don't set this, Desktop will ask for access to keychain/keyring on startup
app.commandLine.appendSwitch('password-store', 'basic');
// <canvas/> rendering is often utterly broken on Linux when using GPU
// acceleration.
if (OS.isLinux()) {
app.disableHardwareAcceleration();
}
// This method will be called when Electron has finished
// initialization and is ready to create browser windows.
// Some APIs can only be used after this event occurs.