Skip to content

Commit 0c8083b

Browse files
authored
[Fix] Account for spaces in GOG game save paths on Windows (#3783)
* [Fix] Account for spaces in GOG game save path in Windows Removes quotation marks from GOG game save paths for cloud sync. The way we pass arguments to PowerShell already handles spaces in the path and the quotation marks added by getShellPath() causes paths to get truncated at the first space if they contain any. * remove quotes from getShellPath() directly instead of working around it
1 parent 3722111 commit 0c8083b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/backend/utils.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -806,7 +806,7 @@ async function shutdownWine(gameSettings: GameSettings) {
806806
}
807807

808808
const getShellPath = async (path: string): Promise<string> =>
809-
normalize((await execAsync(`echo "${path}"`)).stdout.trim())
809+
normalize((await execAsync(`echo ${path}`)).stdout.trim())
810810

811811
export const spawnAsync = async (
812812
command: string,

0 commit comments

Comments
 (0)