protonscr

Can't launch non-Steam games containing a single quote ' in their path

steamopen Steam clientnon-Steam application
ValveSoftware/steam-for-linux#8662 · opened 2022-07-01 by Silejonu · updated 2023-02-02 · 2 comments · github
1 matching comments, n / p to jump
SSilejonu 2022-07-01 github

Your system information

  • Steam client version (build number or date): 2022-06-07 (1654574690)
  • Distribution (e.g. Ubuntu): Arch Linux with GNOME, up-to-date
  • Opted into Steam client beta?: [Yes/No] no
  • Have you checked for system updates?: [Yes/No] yes

Please describe your issue in as much detail as possible:

Adding a non-Steam game which has a single quote (') in its name results in the game not launching.

Example target: steam -applaunch 1118310 -L "/home/silejonu/.steam/steam/steamapps/common/RetroArch/cores/sameboy_libretro.so" "/home/silejonu/ROM/Game Boy/Legend of Zelda, The - Link's Awakening (France).zip"

Steps for reproducing this issue:

  1. Add a non-Steam game with a single quote (') in its name
  2. Launch the game through Steam
  3. The game-initialisation pop-up appears, then disappears immediately
  4. Nothing happens

Additional info

  • Double-quoting (") the path does not help
  • Escaping (\) the single-quote does not help
  • Removing the singe-quotes from a game executable will allow Steam to launch it

Related issues

#2964
#5835
#5220
#7151
#7219
#7580
#7645
#8164

SSilejonu 2022-07-01 github

Additional info after further testing:

I tried running "/home/silejonu/test'.sh", and it launched successfully.

So the issue may be related to -applaunch, or RetroArch.

KKenwoodFox 2023-02-02 github

I seem to have this bug too, sorta. I had a long command that would not launch but ran fine in the terminal, i tried dumping it in a script so my target was just "path/to/script.sh" but still insta crash and no logging with PROTON_LOG=1 But i also have many ' in my command

Launch options