From ecb2645c69488fefa3186618d779e8abc69351f6 Mon Sep 17 00:00:00 2001 From: silentrald Date: Tue, 17 Dec 2024 12:21:49 +0800 Subject: [PATCH] [chore] only check for linux with shouldLoadFromConfig function --- src/main/services/bs-version-lib.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/services/bs-version-lib.service.ts b/src/main/services/bs-version-lib.service.ts index a8ca4ce8..70c16e9c 100644 --- a/src/main/services/bs-version-lib.service.ts +++ b/src/main/services/bs-version-lib.service.ts @@ -42,7 +42,7 @@ export class BSVersionLibService { private async shouldLoadFromConfig(): Promise { // Some special cases of readonly memory installations - return IS_FLATPAK || this.linuxService.isNixOS(); + return process.platform === "linux" && (IS_FLATPAK || this.linuxService.isNixOS()); } private async getLocalVersions(): Promise {