linux: workaround gtk conflict

This commit is contained in:
jean-emmanuel 2026-03-02 16:36:46 +01:00
parent 12508f8994
commit 43d18647b2

View file

@ -21,6 +21,11 @@ if (settings.read('force-gpu')) {
app.commandLine.appendSwitch('--ignore-gpu-blacklist')
}
// Workaround bug in electron 36:https://github.com/electron/electron/issues/46538
if (process.platform === 'linux') {
app.commandLine.appendSwitch('gtk-version', '3')
}
if (semver.gt(settings.infos.version, settings.read('version') || '0.0.0')) {
// set temporary flag to clean electron browser cache in case of update
settings.write('clearCache', true, true)