Bug 136448 - Thunar/xffm shows generic icon if file extension changed
Summary: Thunar/xffm shows generic icon if file extension changed
Keywords:
Status: CLOSED DEFERRED
Alias: None
Product: Fedora
Classification: Fedora
Component: Thunar
Version: 8
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Kevin Fenzi
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2004-10-20 03:09 UTC by Andrew Farris
Modified: 2008-01-06 22:52 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2008-01-06 22:52:49 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Andrew Farris 2004-10-20 03:09:34 UTC
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):
xffm-4.0.6-1
xffm-icons-4.0.6-2

If this is actually the way xffm is choosing the icon then this belongs upstream
and I'll report it there as well.

Comment 1 Andrew Farris 2008-01-05 11:58:10 UTC
This issue is still present in FC8's Thunar (xffm replacement) but is now
slightly different.

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
extension.

Comment 2 Andrew Farris 2008-01-06 01:04:00 UTC
Filed upstream:  http://bugzilla.xfce.org/show_bug.cgi?id=3788

Comment 3 Kevin Fenzi 2008-01-06 05:17:15 UTC
Hey Andrew. 

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... 

Comment 4 Andrew Farris 2008-01-06 06:30:47 UTC
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).

Comment 5 Andrew Farris 2008-01-06 22:52:49 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.