I attempted to create a desktop icon in Fedora Gnome but I only get a generic binary icon for my application. Installing Gimp or OpenOffice magically makes my icon appear.
I used Google Chrome on Fedora as an reference for making a desktop icon using png images. Google Chrome uses 32-bit PNG files in /usr/share/icons/hicolor/#x#/apps/google-chrome.png, where #x# is the various resolutions: 16x16, 22x22, 24x24, 32x32, 48x48, 64x64, 128x128, and 256x256. The permissions on these files were all 0644 or -rw-r--r--. Google places their google-chrome.desktop file in /usr/local/share/applications/ with permission 0644.
Attempt:
I copied all of these conditions except the location of the .desktop file:
my-app.desktopfile was placed in/usr/share/applicationswith permission0644- All png files were saved as 32-bit images and properly located in
/usr/share/icons/hicolor/#x#/appswith permission0644 - My desktop file is as follows:
(my-app.desktop)
[Desktop Entry] Version=1.0 Name=My-App GenericName=My Application Comment=Test Application Terminal=false Icon=my-app.png Type=Application Exec=/opt/my-app/my-app MimeType=application/x-executable Categories=Network Result:
Navigating to /usr/share/applications my my-app.desktop file looks like a plain file:
In the Gnome desktop menu, my application looks like a generic binary file:
Installing Gimp or OpenOffice will make my icon appear as intended without modification to the my-app.desktop file or the png files.
I have tried the following different things to solve the problem:
- Changing
Icon=my-app.pngtoIcon=my-appin my-app.desktop - Saving the PNG files as 24-bit