Summary: | Icon cache is not updated at kde start - icon cache update tool needed | ||
---|---|---|---|
Product: | [Unmaintained] kdelibs | Reporter: | Christoph Thielecke <crissi99> |
Component: | kdeui | Assignee: | Plasma Bugs List <plasma-bugs> |
Status: | RESOLVED FIXED | ||
Severity: | wishlist | CC: | aseigo, cfeck, christoph, fnatter, ian.b.robertson, info, kollix, kovin, mahen, samir, toralf.foerster |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Ubuntu | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: | |||
Attachments: | ooo calc icon from 3.1.0 |
I doubt this should be fixed. The KDE icon cache is designed to keep its contents between KDE restarts. It can detect icon theme changes and this invalidates the cache. Replacing single icons manually by the user, however, would result in a slower KDE start because it would need to check thousands of files if they have changed. We already suffer from slow start up speed. Additionally, users could expect the change to happen immediately. Users that know how to change the icons in the (root-protected) file system manually can also manually clear the icon cache. If you want to change the icon, select a different one. You can even select an icon that you installed into your home directory (in the icon chooser dialog, select "Other icons" and "Browse...". There is no need to swap images behind the back of an icon theme. Keeping this bug open to collect further opinions. I understand the argument of Christoph, but as it is now it doesn't work reliably. Yesterday I noticed that the icon of one of my folders in folder view had changed, so just by chance I found out that Oxygen has new folder icons (since 4.6.3?). I changed via config the icons of the other folder, but it worked only for folder-blue and folder-video, while e.g. folder-sound stayed the same in Dolphin or folderview, but on hovering the preview showed the new icon. There was no change after reboot. Why was one icon changed (I didn't do it)? Why does manual change apply to some icons and not to others? This is IMHO a highly unpolished and in any case inconsistent behaviour. I didn't know where to find the icon cache, in fact, I had no idea that that's the place to look. So I think there are others too, who don't have that knowledge and just whitness a strange behaviour of the icons. Cyril, if I understand you correctly, the icons got changed by a KDE update. The situation is that such an update does exactly what the reporter of the bug did: Files get overwritten by the package manager. The ideal solution would be if the package came with a post-install script to clean the KDE icon cache. I guess we need a simple KDE command line tool to clear those caches, as it would be wired if the post-install script had to find out the location of the cache on its own. Such a script would be a handy solution, as it would clear the cache only when really necessary and on the other hand would prevent such inconsistencies as I described. I noticed that, when creating a custom menu entry (for instance : a new application) with a PNG icon, and modifying the icon content afterwards (in my case, I had to add an alpha layer), the icon in the launcher would never be updated. I had to rename the icon (re-selecting the same icon file in the fileselector wasn't sufficient to force an update). This behaviour is probably not expected ? Cheers & thanks everyone ! *** Bug 289227 has been marked as a duplicate of this bug. *** I rephrased the title for the wish to have an icon cache update tool and changed to wish. Mahendra Tallur: Exactly what I am dealing with right now. I have to rename the PNG file with the icon, or else the icon isn't updated. In my case the icon is invisible, because I deleted the old one and put there another with same filename - and the cache just remembered there was no icon so the application in the panel has "invisible" icon. *** Bug 333083 has been marked as a duplicate of this bug. *** Another userland perspective - I've been trying off and on for months to figure out why, regardless of what I did, an old icon I had set for an application refused to change. While changing an icon might not be a common user activity, when it does happen, this bug can definitely violate the Principle of Least Astonishment. Perhaps invalidating the cache, or at least refreshing the cache for the icon in question, would be in order when edits are done to the "Icon Settings" for an application. Icon cache got removed for apps in KF6. |
Created attachment 51667 [details] ooo calc icon from 3.1.0 Version: unspecified (using KDE 4.5.1) OS: Linux The icon cache will not updated at kde start. This could be problematic if icons has changed (file content). Then the old icon will be displayed instead the new one. Reproducible: Didn't try Steps to Reproduce: Add quickstarter to plasma panel. Install Openoffice 3.2.0 from package. Put ooo calc from kmenu to quickstarter. Change /usr/share/icons/hicolor/16x16/apps/ooo-calc.png to another content (for example the attached). I think this is will be happen on every icon. Actual Results: After kde restart old icon is displayed. Expected Results: After kde restart new icon should be displayed. If I delete ~/.kde/cache-<machine name>/icon-cache.kcache (/var/tmp/kdecache-<username>/icon-cache.kcache) it will be recreated with new data.