Skip to content

Commit df8835a

Browse files
authored
fix: processing runtime arguments with non boolean values (microsoft#218243)
1 parent 6e345d4 commit df8835a

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/main.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -246,17 +246,16 @@ function configureCommandlineSwitchesSync(cliArgs) {
246246
app.commandLine.appendSwitch(argvKey);
247247
}
248248
} else if (argvValue) {
249-
if (argvKey === 'force-color-profile') {
250-
// Color profile
251-
app.commandLine.appendSwitch(argvKey, argvValue);
252-
} else if (argvKey === 'password-store') {
249+
if (argvKey === 'password-store') {
253250
// Password store
254251
// TODO@TylerLeonhardt: Remove this migration in 3 months
255252
let migratedArgvValue = argvValue;
256253
if (argvValue === 'gnome' || argvValue === 'gnome-keyring') {
257254
migratedArgvValue = 'gnome-libsecret';
258255
}
259256
app.commandLine.appendSwitch(argvKey, migratedArgvValue);
257+
} else {
258+
app.commandLine.appendSwitch(argvKey, argvValue);
260259
}
261260
}
262261
}

0 commit comments

Comments
 (0)