Skip to content

Commit

Permalink
[Fix] Account for spaces in GOG game save paths on Windows (#3783)
Browse files Browse the repository at this point in the history
* [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
  • Loading branch information
ghoste07 authored Jun 13, 2024
1 parent 3722111 commit 0c8083b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/backend/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -806,7 +806,7 @@ async function shutdownWine(gameSettings: GameSettings) {
}

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

export const spawnAsync = async (
command: string,
Expand Down

0 comments on commit 0c8083b

Please sign in to comment.