electron-vite
electron-vite copied to clipboard
Start Electron get error about GTK version
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
- [x] Follow the Code of Conduct.
- [x] Read the Contributing Guidelines.
- [x] Read the docs.
- [x] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
It is recommended that you report this issue to Electron.
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