File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -233,25 +233,24 @@ function configureCommandlineSwitchesSync(cliArgs) {
233233
234234 // Append Electron flags to Electron
235235 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' ) {
250237 if ( argvKey === 'disable-hardware-acceleration' ) {
251238 app . disableHardwareAcceleration ( ) ; // needs to be called explicitly
252239 } else {
253240 app . commandLine . appendSwitch ( argvKey ) ;
254241 }
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+ }
255254 }
256255 }
257256
You can’t perform that action at this time.
0 commit comments