Disable hardware acceleration on linux
This commit is contained in:
parent
ffac571dd8
commit
e79d8c1fd6
|
@ -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
|
// If we don't set this, Desktop will ask for access to keychain/keyring on startup
|
||||||
app.commandLine.appendSwitch('password-store', 'basic');
|
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
|
// This method will be called when Electron has finished
|
||||||
// initialization and is ready to create browser windows.
|
// initialization and is ready to create browser windows.
|
||||||
// Some APIs can only be used after this event occurs.
|
// Some APIs can only be used after this event occurs.
|
||||||
|
|
Loading…
Reference in New Issue