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

".desktop"-files created by Cemu do not work, if the path to Cemu contains spaces or some other symbols #912

Closed
MoonlightWave-12 opened this issue Jul 23, 2023 · 5 comments · Fixed by #917

Comments

@MoonlightWave-12
Copy link
Contributor

When creating a ".desktop"-file for a game with Cemu, and the path to Cemu contains spaces, or other symbols, that need a \ in front of them, it will not show up in the app-menu in GNOME (and probably other app-menus too).

This can be manually fixed, by modifying the "Exec=" line in the ".desktop"-files by adding \ in front of spaces, and some other symbols that need them, like (double) quotes.

Exec=/home/username/Games/"Nintendo Wii U"-Emulator/Cemu/Cemu-2.0-45-x86_64.AppImage … does not work.
This is how Cemu currently does it.

Exec=/home/username/Games/\"Nintendo\ Wii\ U\"-Emulator/Cemu/Cemu-2.0-45-x86_64.AppImage … does work.
This is what should be there instead.

Cemu-version: Cemu-2.0-45-x86_64.AppImage
Operating-system: "Debian GNU/Linux 12"

@qurious-pixel
Copy link
Contributor

Modifying with single quotes around the double quotes does work.

For a path at: home > username > Games > "Nintendo Wii U"-Emulator > Cemu

Exec='/home/username/Games/"Nintendo Wii U"-Emulator/Cemu/Cemu-2.0-45-x86_64.AppImage'

@MoonlightWave-12
Copy link
Contributor Author

Modifying with single quotes around the double quotes does work.

Yes, but it won't work when there is a single-quote in the path.

Double-quoting everything does not work either, when there is a double-quote in the path.

@ThisNekoGuy
Copy link

ThisNekoGuy commented Jul 24, 2023

Typically, we handle this on Linux in situations like this by inserting backslashes before spaces and other special characters like parenthesis, like this when we can't use quotes:

mkdir "test - (testing)"
cd test\ -\ \(testing\)

Just having Cemu insert backslashes where appropriate like that should be fine

@capitalistspz
Copy link
Contributor

Might you be able to check out this PR
#917

@MoonlightWave-12
Copy link
Contributor Author

MoonlightWave-12 commented Jul 29, 2023

It works with the AppImage from PR #917.

@Exzap Exzap closed this as completed Aug 2, 2023
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

Successfully merging a pull request may close this issue.

5 participants