Bug 8153 - xdg-icon-resource: gtk-update-icon-cache when no cache existed
Summary: xdg-icon-resource: gtk-update-icon-cache when no cache existed
Status: RESOLVED FIXED
Alias: None
Product: Portland
Classification: Unclassified
Component: xdg-utils (show other bugs)
Version: beta3
Hardware: x86 (IA32) Linux (All)
: high normal
Assignee: Portland Bugs
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-09-06 13:33 UTC by Per Olofsson
Modified: 2006-09-09 16:41 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
xdg-icon-resource-check-for-cache.patch (529 bytes, patch)
2006-09-06 13:34 UTC, Per Olofsson
Details | Splinter Review

Description Per Olofsson 2006-09-06 13:33:24 UTC
The script xdg-icon-resource tries to create a GTK icon cache when installing
icons. The problem here is that there might not have been an icon cache there in
the first place.

Suppose then that another package installs an icon, but does not update the icon
cache (this happens frequently in Debian). Then GTK will not see the new icon
because it uses the outdated cache. Thus, xdg-icon-resource breaks unrelated
packages.

My proposal for fixing this is to check if a cache exists before trying to
update it.
Comment 1 Per Olofsson 2006-09-06 13:34:13 UTC
Created attachment 6848 [details] [review]
xdg-icon-resource-check-for-cache.patch
Comment 2 Waldo Bastian 2006-09-09 16:41:02 UTC
Thanks, applied for beta4


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.