protonscr

steam.sh not working when located in a folder with spaces

steamopen
ValveSoftware/steam-for-linux#7180 · opened 2020-06-10 by daviddavo · updated 2020-06-17 · 1 comments · github
Ddaviddavo 2020-06-10 github

Your system information

  • Steam client version (build number or date): 1.0.0.62-2
  • Distribution (e.g. Ubuntu): manjaro
  • Opted into Steam client beta?: Yes
  • Have you checked for system updates?: Yes

Please describe your issue in as much detail as possible:

I moved the steam folder to another mountpoint because I needed space in that partition and then I couldn't open it, from terminal I get the error:

/mnt/Almacenamiento Alpha/Steam/steam.sh: line 22: cd: too many arguments
Couldn't find Steam root directory from /mnt/Almacenamiento Alpha/Steam/steam.sh, aborting!

If I bind the mountpoint to another location, everything seems fine.

Steps for reproducing this issue:

  1. Move .steam/steam to another folder with a space in the path and symlink it
  2. Try to run the steam client

Solution:
Changing lines 22-23 of steam.sh and put double quotes to everything:

STEAMROOT="$(cd "$(dirname "$0")" && echo $PWD)"
if [ -z "${STEAMROOT}" ]; then
	echo $"Couldn't find Steam root directory from "$0", aborting!"
	exit 1
fi

The problem with this is that the client checks the integrity of the file, sees that one file changed and reinstalls the client, producing the problem again. The temporary solution is binding the folder to a mountpoint without spaces.

TTTimo 2020-06-17 github

As a general rule, I wouldn't recommend having spaces in your install path in general. It's likely some game titles will have problems with it too, things outside of Valve's control. We can fix the steam.sh script though :)

Nothing extracted yet.