Bug 8153

Summary: xdg-icon-resource: gtk-update-icon-cache when no cache existed
Product: Portland Reporter: Per Olofsson <pelle>
Component: xdg-utilsAssignee: Portland Bugs <portland-bugs>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: high    
Version: beta3   
Hardware: x86 (IA32)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:
Attachments: xdg-icon-resource-check-for-cache.patch

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.