custom Electron flags support (fixes #754)

This commit is contained in:
Eugene Pankov
2019-06-14 17:15:52 +02:00
parent f7eeb8df14
commit a90496dc1b
2 changed files with 10 additions and 2 deletions

View File

@@ -19,8 +19,12 @@ export class Application {
}
app.commandLine.appendSwitch('disable-http-cache')
app.commandLine.appendSwitch('force_discrete_gpu', '0')
app.commandLine.appendSwitch('lang', 'EN')
for (const flag of configData.flags || [['force_discrete_gpu', '0']]) {
console.log('Setting Electron flag:', flag.join('='))
app.commandLine.appendSwitch(flag[0], flag[1])
}
}
init () {

View File

@@ -12,3 +12,7 @@ appearance:
vibrancyType: 'blur'
enableAnalytics: true
enableWelcomeTab: true
electronFlags:
- ['disable-http-cache']
- ['force_discrete_gpu', '0']
- ['lang', 'EN']