Skip to content
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

Script fails if directory has spaces in it's name #12

Open
CasualFan99 opened this issue Aug 17, 2024 · 3 comments
Open

Script fails if directory has spaces in it's name #12

CasualFan99 opened this issue Aug 17, 2024 · 3 comments

Comments

@CasualFan99
Copy link

When trying to run a profile, I get the message in the title, and Konsole prints this:

../Co-Op-On-Linux.sh: line 13: cd: too many arguments
mkdir: cannot create directory ‘/home/deck/Desktop/Co-Op’: File exists
mkdir: cannot create directory ‘on’: File exists
mkdir: cannot create directory ‘Linux/controller_blacklists’: No such file or directory
../Co-Op-On-Linux.sh: line 126: [: /home/deck/Desktop/Steam: binary operator expected
rm: cannot remove '/home/deck/Desktop/Co-Op': Is a directory
rm: cannot remove 'on': Is a directory
rm: cannot remove 'Linux/controllers.rc': No such file or directory
../Co-Op-On-Linux.sh: line 115: pushd: too many arguments
../Co-Op-On-Linux.sh: line 116: ./controller-selector: No such file or directory
../Co-Op-On-Linux.sh: line 117: popd: directory stack empty
../Co-Op-On-Linux.sh: line 118: [: too many arguments

Im using my steam deck, andI've tried running Doom, Quake, and Duke Nukem 3D from steam, all with the same result.

Please let me know if there's anything else I need to add, I'm very new to Linux and know next to nothing about it.

@Tau5
Copy link
Owner

Tau5 commented Aug 17, 2024

Can you try to rename the directory where the scripts are stored from "Co-op on Linux" to "Co-Op-On-Linux"?

@CasualFan99
Copy link
Author

Can you try to rename the directory where the scripts are stored from "Co-op on Linux" to "Co-Op-On-Linux"?

That did the trick! I can select controllers now. However, none of the games seem to run. Does it take a while for the script to open and run the games? Or should they open as soon as the controllers are selected?

@Tau5
Copy link
Owner

Tau5 commented Aug 17, 2024

It may take some time but it shouldn't be long. If it takes a long tine it's probably an error with the program

@Tau5 Tau5 changed the title [SteamOS] "Controller selector failed to open or failed to generate controllers file" Script fails if directory has spaces in it's name Aug 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants