maemo.org Bugzilla – Full Text Bug Listing |
Summary: | After installation of software last icon in list has default icon instead of own one | ||
---|---|---|---|
Product: | [Maemo Official Platform] Desktop platform | Reporter: | Marcin Juszkiewicz <maemo> |
Component: | gtk | Assignee: | Alberto Garcia Gonzalez <agarcia> |
Status: | NEW | QA Contact: | gtk-bugs |
Severity: | normal | ||
Priority: | Low | CC: | agarcia, andrew, andre_klapper, bigbrovar, david.hautbois, eileen.khoo, eitamaa, emanuele.cassioli, ferd352+maemo.org, guillaume.desmottes, igagis, jochen_becher, m, maemo, mail, marat, sumanah, timo.mommo, tomi.ollila, too, v13 |
Version: | 5.0:(20.2010.36-2) | ||
Target Milestone: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Bug Depends on: | 6729 | ||
Bug Blocks: | |||
Attachments: | Patch for GTK |
Looks like it (maybe even a dupe): Nokia-N900-42-11:~# apt-get install midori [...] Setting up midori (0.2.1-0git1) ... gtk-update-icon-cache: Failed to open file /usr/share/icons/hicolor/.icon-theme.cache : File exists and sure enough the default icon is displayed in app launcher. Re-testing welcome after the "fix" to bug 6729 has been released.
*** Bug 7012 has been marked as a duplicate of this bug. ***
*** Bug 7245 has been marked as a duplicate of this bug. ***
This should be fixed in PR1.1 anyway by dropping gtk-update-icon-cache (see bug 6729 comment 5). If anybody runs into this using the next feature update, please reopen.
Created an attachment (id=3015) [details] Patch for GTK Ok, there are two things here: 1) First is that when GTK tries to detect whether the icon theme has changed, it will only check the base directory (e.g. /usr/share/icons/hicolor), but NOT its subdirectories, where the actual icons are installed (e.g. 64x64/hildon). Calling gtk-update-icon-cache used to be enough, since it modified the base directory, but it's useless now that it's a no-op. The attached patch makes GTK check all subdirectories too. 2) Second, although gtk-update-icon-cache was disabled because we're not using the icon cache anymore, I think we could make it update the timestamp of the theme directory, so we have a way to make GTK read all icons again. Something like this: #!/bin/sh -e [ -d "$1" ] && touch "$1" But note that something like this alone won't fix the problem, especially when many packages are not calling gtk-update-icon-cache.