-
Notifications
You must be signed in to change notification settings - Fork 175
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Path to Steam directory cannot contain spaces #3711
Comments
Your short log points at another problem about LD_LIBRARY_PATH not being defined: That said, about the reported bug, indeed the missing quotes seem to be the real problem. Updated comment: removed question about the symlink. |
By the way, your suggested fix makes sense. ;) |
Thanks for the quick response. In case it helps still I've done the symlink thing, it hasn't made a difference:
|
This would be a smarter way to set the STEAMROOT variable:
|
Yes, that would be another solution. But, from a bug encountered in a launch script, wouldn't it be better to add quotes like this: |
Any chance of putting one of these fixes in the next release? I still see the problem after the latest update. |
Not sure how probable this is for anyone with *nix-only background since most such people know to use underscores instead of spaces for compatibility. Not saying I wouldn't like to see this bug squished |
*nix has always supported spaces in filenames, and that's commonly used in people's home directories. This is a bug worth fixing |
Unreal that I have encountered a problem tied to this somehow 7 years later. I tried to find out for 5 hours how it is possible that Steam segfaults when I try to open it via terminal (Konsole) with /home/magicd3vil/.local/share/Steam/steam.sh: line 794: 372749 Segmentation fault (core dumped) "$STEAMROOT/$STEAMEXEPATH" "$@" and when I launch it in KDE via the desktop shortcut it works with no problems. And... for no apparent reason when I try to launch it from the terminal via |
I've moved my Steam directory to another location and I've found that Steam won't start if the directory path contains spaces.
Steps to reproduce:
Expected result:
Steam starts properly
Actual result:
Steam fails to start with:
Workarounds:
Start Steam at the shell with: cd "/home/user/Program Data/"; ./steam.sh
Change "Program Data" to "Program_Data"
Suggested Fix:
As far as I can tell the way you set STEAMROOT using dirname $0 is wrong - you need to enclose it in quotes to account for file paths that have spaces:
STEAMROOT="$(cd "$(dirname "$0")" && echo $PWD)"
The text was updated successfully, but these errors were encountered: