Electron is throwing gpu errors under some circumstances e.g. running in a docker container as mentioned here and there were already some threads in the forum about this.
To disable these errors you can add app.disableHardwareAcceleration() in electron.js or --disable-gpu in package.json.
Both variants are ugly because for automating this you can only use sed or similar tools.
So I would like to add an environment variable ELECTRON_DISABLE_GPU and add app.disableHardwareAcceleration() in electron.js only when set.
More info's to disableHardwareAcceleration:
May it is also an option to run always with app.disableHardwareAcceleration()?
Electron is throwing gpu errors under some circumstances e.g. running in a docker container as mentioned here and there were already some threads in the forum about this.
To disable these errors you can add
app.disableHardwareAcceleration()inelectron.jsor--disable-gpuinpackage.json.Both variants are ugly because for automating this you can only use
sedor similar tools.So I would like to add an environment variable
ELECTRON_DISABLE_GPUand addapp.disableHardwareAcceleration()inelectron.jsonly when set.More info's to disableHardwareAcceleration:
May it is also an option to run always with
app.disableHardwareAcceleration()?