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

If the AppImage has space in the name, some desktop enviornments won't pick up the entire name. #159

Open
efindus opened this issue Oct 21, 2021 · 3 comments

Comments

@efindus
Copy link

efindus commented Oct 21, 2021

On this line the Exec path is set to the AppImage path without any quotes so some DEs (like KDE Plasma) won't pick up the entire name (if the filename has any spaces within it), so the desktop file will fail to launch. The problem should be solved just by adding " to both sides of the Exec path (and possibly escaping any within the path).

@azubieta
Copy link
Contributor

@efindus could you provide a "broken" Desktop Entry to reproduce the issue ?

@efindus
Copy link
Author

efindus commented Oct 22, 2021

Ok:

[Desktop Entry]
Name=ApplicationImage
Exec=/home/efindus/Applications/A AppImage Name_4d9eea6234ba4bbbe07792175f9db45f.AppImage
Terminal=false
Type=Application
Icon=appimagekit_fdaa501b56cdbf331e092e8c012891e7_ApplicationImage
StartupWMClass=ApplicationImage
X-AppImage-Version=1.0.0
Comment=ApplicationImage.
Categories=Utility;
TryExec=/home/efindus/Applications/A AppImage Name_4d9eea6234ba4bbbe07792175f9db45f.AppImage
X-AppImage-Old-Icon=ApplicationImage
X-AppImage-Identifier=fdaa501b56cdbf331e092e8c012891e7

This one will fail on Ubuntu 21.04, KDE Plasma 5.21.4 with following error:
image
It works when I wrap the Exec path in ".

@darealshinji
Copy link

Escaping the spaces with a backslash works too.

Exec=/home/efindus/Applications/A\ AppImage\ Name_4d9eea6234ba4bbbe07792175f9db45f.AppImage

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

3 participants