Can .desktop files run app images?

If so I must be doing something wrong. I get error when I try to run this.

#!/usr/bin/env xdg-open
[Desktop Entry]
Name=OpenRGB
GenericName=RGB Lighting Control
Type=Application
Exec=/home/g/Open RGBOpenRGB_1.0rc1_x86_64_1fbacde.AppImage
Icon=/home/g/Open RGB/RGB_Circle_1-80_icon-icons.png
Category=System;


I have this for FreeTube appimage. It works for me launching it clicking on the icon.

[Desktop Entry]
Name=FreeTube
Exec=/data/Applications/AppImages/freetube.AppImage
Comment=
Terminal=false
Icon=youtube
Type=Application

you have a “space” in your exec and icon line. might be considered as executable + parameter. try wrapping in “”

1 Like

Yes. I saw it earlier, and forgot to change it. I just removed the spaces. The icon is now showing up on the .desktop file, but it still shows the same error. I went ahead and made a panel launcher that works well enough.

Is #!/usr/bin/env xdg-open really needed? I would remove it and try again.

1 Like

I have overseen this, too :slight_smile:
Must not be in .desktop file. I agree to remove it!

1 Like

You can try this:

desktop-file-validate /path/to/your/desktop-file

Does it produce some info you can work with?

Same result. First I get this:


When I click Launch anyway, I get the error message above.

I found the problem. I had a capital O when it should have been a small o.
ahh

3 Likes