How do I get an image to appear in an Ubuntu desktop shortcut?
I am trying to get an icon to appear in my desktop shortcut. I am using Ubuntu 20.04.5 LTS. This is what my desktop file looks like:
[Desktop Entry]
Name=Picture Show
Exec=./MyPrograms/PictureShow/ShoPixLinux
Icon=MyPrograms/PictureShow/PictureShow64.png
Terminal=false
Type=Application
I right-click and select Allow Launching, and it works, except I get a red logo with the international NO symbol (a circle with a cross through it) as the icon. If I add a leading right slash after Icon=
, I get no shortcut image, just the title. I have tried the original image in .svg format. I have tried .png images in 44 x 44, 48 x 48, 64 x 64, 128 x 128, and 150 x 150.
What am I doing wrong?
Is there something specific about the color depth of the images? Do the images need to be in a specific location, like usr/share/icons
? Do they need to be in a specifically named subfolder? Just what size image should I create for an Ubuntu desktop shortcut?