Introduce --enable-gpu flag on Linux
This commit is contained in:
parent
6b42a69947
commit
4c622b6f81
1 changed files with 4 additions and 1 deletions
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue