File extension not used to deduce file type when mimetype doesn't exist
|Reported by:||xray7224||Owned by:||bonefish|
|Has a Patch:||no||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