protonscr

Non-Steam Games with spaces in path name won't lauch

protonclosed
ValveSoftware/Proton#2964 · opened 2019-08-08 by ThatAnnoyedGuy · updated 2020-05-31 · 6 comments · github
TThatAnnoyedGuy 2019-08-08 github

I'm trying to launch non steam games via proton, but any game that contains a space in the path name refuses to even launch.

  • Target: "/media/MY_USER_NAME/Linux/Games/PC/Gog/The Witcher 3 Wild Hunt/bin/x64/witcher3.exe"
  • Start in: "/media/MY_USER_NAME/Linux/Games/PC/Gog/The Witcher 3 Wild Hunt/bin/x64/"
  • Also tried target: "witcher3.exe"
  • Also tried adding \ characters such as: "/media/MY_USER_NAME/Linux/Games/PC/Gog/The\ Witcher\ 3\ Wild\ Hunt/bin/x64/" to no avail.

What am I doing wrong? I don't think removing the spaces in the path name is a good idea, as what if there are spaces in the games subfolders? Doing this does get games to launch though...

Info:

  • proton v4.11-1
  • Running on an ext-4 partition.
  • uname -a:

5.0.0-23-generic #24~18.04.1-Ubuntu SMP Mon Jul 29 16:12:28 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

?ghost 2019-08-09 github

What am I doing wrong?

Technically nothing perhaps. Its up to the application in this case Steam or Proton to deal with spaces in the path... but at the same time, I have a Steam game with a space in the path and the game works so obviously Steam/Proton can deal with spaces in the path (might have extra help though and maybe non-steam games weren't tested or lower priority).

Hhavarc 2019-08-09 github

Steam has this annoying thing to cut off the path when you first add an external game.
If you click the "change" button and select the exe again it should be working.

Ppingubot 2019-08-10 github

Also make sure to check the games "launch options" in the steam shortcut, cause the things which get cut off from the "target", land in there and block the games from being launched. This is some bug with adding third party executables.

TThatAnnoyedGuy 2019-08-10 github

Also make sure to check the games "launch options" in the steam shortcut, cause the things which get cut off from the "target", land in there and block the games from being launched. This is some bug with adding third party executables.

This resolved the issue. Thanks

Ttonebacas 2020-05-31 github

Steam has this annoying thing to cut off the path when you first add an external game.
If you click the "change" button and select the exe again it should be working.

Good workaround.

Still, this issue isn't fixed, and will surely come up again in the future, not to mention it's annoying to have to go through these steps to get it working.

Kkisak-valve maintainer 2020-05-31 github

Hello @tonebacas, looks like this issue is being tracked at https://github.com/ValveSoftware/steam-for-linux/issues/5220.