[haiku] Re: Auto-setting mime types

  • From: "Axel Dörfler" <axeld@xxxxxxxxxxxxxxxx>
  • To: haiku@xxxxxxxxxxxxx
  • Date: Tue, 3 Jan 2012 10:44:29 +0100 (MET)

Sean Healy<jalopeura@xxxxxxxxxxx> wrote:
> I've noticed when copying files from other file systems (for example, 
> the FAT32 on a USB key), files with a .pl extension get marked as 
> text/plain, even though when I check in File Types, .pl is not under 
> text/plain, but under text/source-code. However, .py files, which show 
> up in the same place in File Types, get marked as text/source-code.
> This seems to indicate that the data from File Types is NOT what's being 
> used to auto-set the mime types on files copied from other file systems. 
> So how does this data get set, and how can I change it? I'm getting 
> really tired of having to manually set the mime type every time I copy a 
> .pl file.

This probably means that there is a rule to detect plain text files because 
that one likely has a higher precedence as the file suffix.
Not entirely sure about it, but that's where I would start to look for the 
And by all means, please file a bug report for the issue!


Other related posts: