From 0e3a37b645bbec7a72f5b63221aa89d43025f5ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Lidwin?= Date: Wed, 8 Jan 2025 12:14:04 +0100 Subject: [PATCH] fix: ensure other codepaths have proper access too --- src/backend/storeManagers/gog/setup.ts | 12 ++---------- src/backend/storeManagers/legendary/setup.ts | 1 + 2 files changed, 3 insertions(+), 10 deletions(-) diff --git a/src/backend/storeManagers/gog/setup.ts b/src/backend/storeManagers/gog/setup.ts index 9e4f6fe0c7..48bbce6fd3 100644 --- a/src/backend/storeManagers/gog/setup.ts +++ b/src/backend/storeManagers/gog/setup.ts @@ -209,11 +209,7 @@ async function setup( protonVerb: 'run', installFolderName: gameInfo.install.install_path, skipPrefixCheckIKnowWhatImDoing: true, - startFolder: path.join( - gogSupportPath, - appName, - supportCommand.gameID - ) + startFolder: gameInfo.install.install_path }) } } @@ -318,11 +314,7 @@ async function setup( protonVerb: 'run', installFolderName: gameInfo.install.install_path, skipPrefixCheckIKnowWhatImDoing: true, - startFolder: path.join( - gogSupportPath, - appName, - manifestProduct.productId - ) + startFolder: gameInfo.install.install_path }) } } diff --git a/src/backend/storeManagers/legendary/setup.ts b/src/backend/storeManagers/legendary/setup.ts index 5064df8fc1..233c0c3204 100644 --- a/src/backend/storeManagers/legendary/setup.ts +++ b/src/backend/storeManagers/legendary/setup.ts @@ -51,6 +51,7 @@ export const legendarySetup = async (appName: string) => { ) { await runWineCommand({ gameSettings, + installFolderName: gameInfo.install.install_path, commandParts: [ join( gameInfo.install.install_path ?? '',