icon-theme.cache gets detected incorrectly

Bug #359434 reported by Stefan Friesel
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
GTK+
Won't Fix
Medium
shared-mime-info
Won't Fix
Low
shared-mime-info (Ubuntu)
Triaged
Wishlist
Unassigned

Bug Description

Binary package hint: shared-mime-info

icon caches (created by gtk-update-icon-cache) are currently detected as application/x-font-ttf by the pattern
freedesktop.org.xml:5706 <match value="\000\001\000\000\000" type="string" offset="0"/>

imho this pattern is much to simple and should be removed/expanded (icon cashes happen to match this pattern because their header contains the version number 1.0.12 with 16bit-ints for each part).

icon cache files could be detected by
<glob pattern="*.cache"/>
or even
<treematch type="file" path="icon-theme.cache" match-case="true"/>
as this name seems to be canonical.

Revision history for this message
Stefan Friesel (stefan-friesel) wrote :

Binary package hint: shared-mime-info

icon caches (created by gtk-update-icon-cache) are currently detected as application/x-font-ttf by the pattern
freedesktop.org.xml:5706 <match value="\000\001\000\000\000" type="string" offset="0"/>

imho this pattern is much to simple and should be removed/expanded (icon cashes happen to match this pattern because their header contains the version number 1.0.12 with 16bit-ints for each part).

icon cache files could be detected by
<glob pattern="*.cache"/>
or even
<treematch type="file" path="icon-theme.cache" match-case="true"/>
as this name seems to be canonical.

Revision history for this message
Sebastien Bacher (seb128) wrote :

thank you for your bug report, that should be rather sent to bugs.freedesktop.org though where the people writting the code will read it too

Changed in shared-mime-info (Ubuntu):
importance: Undecided → Wishlist
status: New → Confirmed
Changed in shared-mime-info:
status: Unknown → Confirmed
Changed in shared-mime-info (Ubuntu):
status: Confirmed → Triaged
Changed in shared-mime-info:
importance: Unknown → Low
Changed in shared-mime-info:
importance: Low → Unknown
Changed in shared-mime-info:
importance: Unknown → Low
Changed in shared-mime-info:
status: Confirmed → Won't Fix
Changed in gtk:
importance: Unknown → Medium
status: Unknown → New
Changed in gtk:
status: New → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.