Skip to content

Commit 73b68d1

Browse files
authored
fix(config): fix loading configuration file on windows, remove arg check COMPASS-6527 (#4208)
1 parent 38dea55 commit 73b68d1

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

packages/compass-preferences-model/src/global-config.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,7 @@ function getGlobalConfigPaths(): string[] {
2020

2121
switch (process.platform) {
2222
case 'win32':
23-
if (process.execPath === process.argv[1]) {
24-
paths.push(path.resolve(process.execPath, '..', 'mongodb-compass.cfg'));
25-
}
23+
paths.push(path.resolve(process.execPath, '..', 'mongodb-compass.cfg'));
2624
break;
2725
default:
2826
paths.push('/etc/mongodb-compass.conf');

0 commit comments

Comments
 (0)