You are not logged in.
I am trying to create a .desktop file for my application. I have installed all the icons in to the /usr/share/icons/hicolor/${SIZE}x${SIZE}/apps/ directories, but for some reason the when the icon size in KDE is 32x32, the .desktop file shows a white sheet of paper with a question mark. For all other sizes the .desktop file uses the correct icon. The icon sizes I have installed are: 16, 24, 32, 48, 64, 128 and 256.
Any idea how this could happen? I have double-checked that the right icon is installed for 32x32. I have tried re-saving the icon in GIMP in case it was somehow corrupted.
Last edited by shaurz (2012-04-19 00:49:09)
Offline
@shaurz: The output of "file /usr/share/icons/hicolor/32x32/apps/the_icon.png"?
Last edited by lunar (2012-04-18 21:40:31)
Offline
/usr/share/icons/hicolor/32x32/apps/devo.png: PNG image data, 32 x 32, 8-bit/color RGBA, non-interlaced
Offline
Did you run "kbuildsyscoca4" after installation?
Offline
No, but I just tried that now and it made no difference.
Offline
Hmm, something very strange. If I only install the 256 icon, the same thing happens. All other icons sizes work (automatically generated from 256x256 icon) except 32x32... how odd.
Offline
If I change the name of the icon to something other than "devo", it works fine! I wonder if it's conflicting with something else?
Offline
@shaurz: Maybe the previously broken icon made it into the KDE pixmap cache. Log out of KDE, clear the cache, and login again. The pixmap cache is located in "/var/tmp/kdecache-*/kpc" or "~/.kde4/cache-*/kpc" depending on your KDE version. Replace the asterisk with your username.
Offline
You were right, it turned out to be a bad icon cache. I didn't find any files called kpc, but I deleted all the *.kcache files and that did the trick. Thanks!
Offline
@shaurz: I didn't actuallly know the location of the cache, googled for it, and apparently only found outdated information. Sorry
Last edited by lunar (2012-04-19 07:25:52)
Offline