From 21fdea9c352f513379713ffb9e79b0d845fcf8c5 Mon Sep 17 00:00:00 2001 From: WitheringAway <124115470+notwithering@users.noreply.github.com> Date: Sun, 2 Nov 2025 09:56:54 -0500 Subject: [PATCH] fix bsipa installation error on linux #945 (#948) prevent overwriting wineprefix (#945) --- src/main/services/mods/bs-mods-manager.service.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/services/mods/bs-mods-manager.service.ts b/src/main/services/mods/bs-mods-manager.service.ts index ff600368..17688379 100644 --- a/src/main/services/mods/bs-mods-manager.service.ts +++ b/src/main/services/mods/bs-mods-manager.service.ts @@ -156,7 +156,7 @@ export class BsModsManagerService { return false; } - const env: Record = {}; + const env: Record = { ...process.env }; const cmd = `"${ipaPath}" "${bsExePath}" ${args.join(" ")}`; let winePath: string = ""; if (process.platform === "linux") { @@ -176,7 +176,6 @@ export class BsModsManagerService { throw new CustomError("Could not find BSManager WINEPREFIX path", "no-wineprefix"); } env.WINEPREFIX = winePrefix; - Object.assign(env, process.env); } return new Promise(resolve => {