CrumblyLiquid / BakkesLinux

Guide for running BakkesMod on Linux
36 stars 5 forks source link

File path getting split at the space in "Program Files" #5

Closed AbiQuinn closed 10 months ago

AbiQuinn commented 10 months ago

[abi@asahigaoka ~]$ protontricks -c "/home/abi/.steam/steam/steamapps/compatdata/252950/pfx/drive_c/Program Files/BakkesMod/BakkesMod.exe" 252950 Kept giving me: /bin/sh: line 1: /home/abi/.steam/steam/steamapps/compatdata/252950/pfx/drive_c/Program: No such file or directory

Solution was to use extra ' ': protontricks -c "'/home/abi/.steam/steam/steamapps/compatdata/252950/pfx/drive_c/Program Files/BakkesMod/BakkesMod.exe'" 252950

CrumblyLiquid commented 10 months ago

Reading protontricks --help I found this:

-c COMMAND, --command COMMAND
                        Run a command in the game's installation directory with Wine-related environment variables set. The command is passed to the shell as-is without being escaped.

It's not escaping the command and that's why the extra quotes are required. Fixed in 2e8d4c1.

Thank you!