electron-vite icon indicating copy to clipboard operation
electron-vite copied to clipboard

Start Electron get error about GTK version

Open PatrickT80 opened this issue 6 months ago • 3 comments

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: https://github.com/electron/electron/issues/46538#issuecomment-2808806722

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

PatrickT80 avatar May 17 '25 17:05 PatrickT80

It is recommended that you report this issue to Electron.

alex8088 avatar May 20 '25 01:05 alex8088

It is recommended that you report this issue to Electron.

I've tried to run electron without this lib and it run correctly without error; seems the command line not receive the arguments

PatrickT80 avatar May 21 '25 17:05 PatrickT80