Skip to content

Start Electron get error about GTK version #778

Open
@PatrickT80

Description

@PatrickT80

Describe the bug

When start the app, electron complaint about GTK version mismatch with this error:
Gtk-ERROR **: 19:37:57.074: GTK 2/3 symbols detected. Using GTK 2/3 and GTK 4 in the same process is not supported

On electron repository, the suggested solution is to use the:
app.commandLine.appendSwitch('gtk-version', '3');
as suggested here: electron/electron#46538 (comment)

But even if i wrote this in main.ts, electron complain about GTK version mismatch

Electron-Vite Version

3.1.0

Electron Version

36.2.1

Vite Version

6.3.5

Validations

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions