[haiku-bugs] [Haiku] #10917: File extension not used to deduce file type when mimetype doesn't exist

  • From: "xray7224" <trac@xxxxxxxxxxxx>
  • Date: Sat, 07 Jun 2014 14:46:40 -0000

#10917: File extension not used to deduce file type when mimetype doesn't exist
-------------------------------------------+------------------------------
 Reporter:  xray7224                       |        Owner:  nobody
     Type:  bug                            |       Status:  new
 Priority:  normal                         |    Milestone:  R1
Component:  - General                      |      Version:  R1/Development
 Keywords:  file, type, filter, detection  |   Blocked By:
 Blocking:                                 |  Has a Patch:  0
 Platform:  All                            |
-------------------------------------------+------------------------------
 I don't know if I've misunderstood the file type detection used in Haiku
 however, If there is a file without a mimetype file attribute (e.g. on a
 non-BFS volume) then it doesn't seem to use the file extension to deduce
 what type it is.

 I have a HTML file ext4 volume which obviously doesn't have the mimetype
 attribute, when I double click the file to open it, it will open in
 StyledEdit. I have checked in Preferences > FileTypes and it says the
 preferred application is WebPositive and also it does have the ".htm" and
 ".html" file extensions associated with it. If I open the get info on the
 file it says "Kind: Generic file" suggesting it's not used the ".html"
 file extension to deduce the file type.

 I suggest that if the mimetype isn't present what format a file is should
 be deduced by it's file extension (if possible).

 I am using nightly hrev47325

--
Ticket URL: <https://dev.haiku-os.org/ticket/10917>
Haiku <https://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: