From 8c32c2214dce4f07398497143b07ccf0334fb310 Mon Sep 17 00:00:00 2001 From: aumouvantsillage Date: Wed, 23 Feb 2022 21:18:00 +0100 Subject: [PATCH] Disable GPU Sandbox (see issue #603) --- src/js/index-electron.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/js/index-electron.js b/src/js/index-electron.js index 3709f893..ee118959 100644 --- a/src/js/index-electron.js +++ b/src/js/index-electron.js @@ -40,6 +40,10 @@ function createWindow () { }); } +// Workaround for launching error "GPU process isn't usable. Goodbye." +// See issue https://github.com/sozi-projects/Sozi/issues/603 +app.commandLine.appendSwitch("disable-gpu-sandbox"); + // Prevent Electron from altering colors in the SVG. if (process.env.SOZI_DISABLE_COLOR_CORRECT_RENDERING) { app.commandLine.appendSwitch("disable-color-correct-rendering");