File tree Expand file tree Collapse file tree 1 file changed +13
-14
lines changed Expand file tree Collapse file tree 1 file changed +13
-14
lines changed Original file line number Diff line number Diff line change @@ -233,25 +233,24 @@ function configureCommandlineSwitchesSync(cliArgs) {
233
233
234
234
// Append Electron flags to Electron
235
235
if ( SUPPORTED_ELECTRON_SWITCHES . indexOf ( argvKey ) !== - 1 ) {
236
-
237
- if (
238
- // Color profile
239
- argvKey === 'force-color-profile' ||
240
- // Password store
241
- argvKey === 'password-store'
242
- ) {
243
- if ( argvValue ) {
244
- app . commandLine . appendSwitch ( argvKey , argvValue ) ;
245
- }
246
- }
247
-
248
- // Others
249
- else if ( argvValue === true || argvValue === 'true' ) {
236
+ if ( argvValue === true || argvValue === 'true' ) {
250
237
if ( argvKey === 'disable-hardware-acceleration' ) {
251
238
app . disableHardwareAcceleration ( ) ; // needs to be called explicitly
252
239
} else {
253
240
app . commandLine . appendSwitch ( argvKey ) ;
254
241
}
242
+ } else if ( argvValue ) {
243
+ if ( argvKey === 'force-color-profile' ) {
244
+ // Color profile
245
+ app . commandLine . appendSwitch ( argvKey , argvValue ) ;
246
+ } else if ( argvKey === 'password-store' ) {
247
+ // Password store
248
+ let migratedArgvValue = argvValue ;
249
+ if ( argvValue === 'gnome' || argvValue === 'gnome-keyring' ) {
250
+ migratedArgvValue = 'gnome-libsecret' ;
251
+ }
252
+ app . commandLine . appendSwitch ( argvKey , migratedArgvValue ) ;
253
+ }
255
254
}
256
255
}
257
256
You can’t perform that action at this time.
0 commit comments