Skip to content

Commit 259fb95

Browse files
authored
fix(compass-preferences-model): update windows config file fetching location one folder up COMPASS-6527 (#4274)
1 parent c7793c2 commit 259fb95

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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

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

2121
switch (process.platform) {
2222
case 'win32':
23-
paths.push(path.resolve(process.execPath, '..', 'mongodb-compass.cfg'));
23+
paths.push(
24+
path.resolve(process.execPath, '..', '..', 'mongodb-compass.cfg')
25+
);
2426
break;
2527
default:
2628
paths.push('/etc/mongodb-compass.conf');

0 commit comments

Comments
 (0)