Introduce --enable-gpu flag on Linux
This commit is contained in:
@@ -161,6 +161,9 @@ const defaultWebPrefs = {
|
|||||||
spellcheck: false,
|
spellcheck: false,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
const DISABLE_GPU =
|
||||||
|
OS.isLinux() && !process.argv.some(arg => arg === '--enable-gpu');
|
||||||
|
|
||||||
function showWindow() {
|
function showWindow() {
|
||||||
if (!mainWindow) {
|
if (!mainWindow) {
|
||||||
return;
|
return;
|
||||||
@@ -1610,7 +1613,7 @@ app.commandLine.appendSwitch('password-store', 'basic');
|
|||||||
|
|
||||||
// <canvas/> rendering is often utterly broken on Linux when using GPU
|
// <canvas/> rendering is often utterly broken on Linux when using GPU
|
||||||
// acceleration.
|
// acceleration.
|
||||||
if (OS.isLinux()) {
|
if (DISABLE_GPU) {
|
||||||
app.disableHardwareAcceleration();
|
app.disableHardwareAcceleration();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user