2008-10-08 00:00:01 |
Krzysztof Kosinski |
description |
Binary package hint: shared-mime-info
According to this:
http://standards.freedesktop.org/shared-mime-info-spec/shared-mime-info-spec-latest.html
The file /usr/share/mime/icons should contain a list of mimetypes and their associated icon names. However, currently this file only lists custom overrides defined by the user in <icon> elements.
GIO uses this file via xdgmime to find the icons for files in e.g. Nautilus. XDG icons always override the default icon name that is obtained by substituting slashes in the mimetype name with hyphens. This causes wrong behavior - if a given file type has a generic icon assigned, it always overrides the specific mimetype icons, e.g. application-x-rar will show up as package-x-generic even though there is an icon for application-x-rar in the current theme. To prevent this, all mimetypes should have their icons listed in /usr/share/mime/icons.
Here is a patch for update-mime-database that writes the default icon names (obtained by substituting slashes for hyphens) to the aforementioned file, thereby causing the right icons to show up and fixing this regression from Hardy. This bug was first reported as bug #278133 and incorrectly marked as a duplicate of an unrelated problem with icon theme inheritance. |
Binary package hint: shared-mime-info
According to this:
http://standards.freedesktop.org/shared-mime-info-spec/shared-mime-info-spec-latest.html
The file /usr/share/mime/icons should contain a list of mimetypes and their associated icon names. However, currently this file only lists custom overrides defined by the user in <icon> elements.
GIO uses this file via xdgmime to find the icons for files in e.g. Nautilus. XDG icons always override the default icon name that is obtained by substituting slashes in the mimetype name with hyphens. This causes wrong behavior - if a given file type has a generic icon assigned, it always overrides the specific mimetype icons, e.g. application-x-rar will show up as package-x-generic even though there is an icon for application-x-rar in the current theme. To prevent this, all mimetypes should have their icons listed in /usr/share/mime/icons.
Here is a patch for update-mime-database that writes the default icon names (obtained by substituting slashes for hyphens) to the aforementioned file, thereby causing the right icons to show up and fixing this regression from Hardy. This bug was first reported as bug #278113 and incorrectly marked as a duplicate of an unrelated problem with icon theme inheritance. |
|