linux: workaround gtk conflict
This commit is contained in:
parent
12508f8994
commit
43d18647b2
1 changed files with 5 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue