Skip to content

electron app.disableHardwareAcceleration() #2831

@khassel

Description

@khassel

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()?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions