Red Hat Bugzilla – Bug 136448
Thunar/xffm shows generic icon if file extension changed
Last modified: 2008-01-06 17:52:49 EST
Description of problem:
The incorrect icon is shown (or a generic icon) for files which have no filetype
extension in the name, yet have a recognizable MIME type. An RPM has a 'box'
package icon, yet if it is named *.rp the icon will no longer be used. The file
properties in xffm still shows the file as a recognized RPM. The same is true
of any other type I've tried which has non-generic icon used. Extensions should
not be used to determine filetype.
Version-Release number of selected component (if applicable):
If this is actually the way xffm is choosing the icon then this belongs upstream
and I'll report it there as well.
This issue is still present in FC8's Thunar (xffm replacement) but is now
If an RPM package is renamed to .rp or .txt then the appropriate icon is used
for that extension but both are incorrect for the actual file... (realpix is .rp)
However, if no extension is there, or one that is undefined like .r then it will
instead use the RPM icon and identify the file as type rpm package.
It seems that extensions are trusted as correct if present and defined and
otherwise the file's MIME type is used?
Intentional or not, this seems to be backwards to me. If the file itself claims
a type shouldn't it be used rather than the extension and only trust the
extension as correct when its ambiguous?
Nautilus recognizes the file to be RPM in all the above cases and the package
icon is always used. Thunar behaves differently and changes the icons based on
Filed upstream: http://bugzilla.xfce.org/show_bug.cgi?id=3788
I took over the Xfce packages from Than quite a while ago... this bug must have
been filed before then and not gotten changed over to me.
I just happened to notice it go by.
Thank you for updating things and filing upstream...
Yes I filed it long ago and forgot about it since I wasn't using XFCE anymore.
I should mention that this is not only an icon issue... if an RPM package is double clicked while its name
has the .rp extension Thunar will attempt to open the file with VLC media player (on my system). This is
clearly not correct behavior (I'll clarify that upstream too).
Benny at xfce closed this upstream as invalid since it is expected behavior, and says the difference in
nautilus and thunar should disappear when thunar is using GVfs (I guess that is planned). So I suppose
this is deferred to later.