Wrong fallback order of mimetype icons in GIO
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
GLib |
Fix Released
|
Low
|
|||
glib2.0 (Ubuntu) |
Fix Released
|
Low
|
Ubuntu Desktop Bugs |
Bug Description
Beginning with the version of GIO present in Intrepid Beta, the icons for mimetypes have a wrong fallback order. This is caused by the following snippet in glib2.0-
G_LOCK (gio_xdgmime);
xdg_mimetype_icon = g_strdup (xdg_mime_get_icon (type));
G_UNLOCK (gio_xdgmime);
(...)
if (xdg_mimetype_icon)
icon_names[n++] = xdg_mimetype_icon;
icon_names[n++] = mimetype_icon;
icon_names[n++] = legacy_
icon_names[n++] = generic_
xdg_mime_get_icon is supposed to get the custom name of the icon for the type specified by the user and defined in /usr/share/
The fix is to remove this fallback mechanism from xdg_mime_get_icon, and modify the above snippet to also use xdg_mime_
Changed in glib: | |
status: | Unknown → New |
Changed in glib2.0: | |
assignee: | nobody → desktop-bugs |
importance: | Undecided → Low |
status: | New → Triaged |
Changed in glib: | |
status: | New → Fix Released |
Changed in glib: | |
importance: | Unknown → Low |
Reported upstream: bugzilla. gnome.org/ show_bug. cgi?id= 555711
http://