[haiku-bugs] Re: [Haiku] #10067: Extension should determine file type with same sniffer rule

  • From: "Haiku" <trac@xxxxxxxxxxxx>
  • To: undisclosed-recipients: ;
  • Date: Sat, 02 Jan 2021 02:47:07 -0000

#10067: Extension should determine file type with same sniffer rule
--------------------------------+-----------------------------------
  Reporter:  humdinger          |      Owner:  bonefish
      Type:  enhancement        |     Status:  new
  Priority:  normal             |  Milestone:  R1
 Component:  Servers/registrar  |    Version:  R1/Package Management
Resolution:                     |   Keywords:
Blocked By:                     |   Blocking:  10917
  Platform:  All                |
--------------------------------+-----------------------------------
Comment (by nephele):

 Hey,
 Is there code currently to determine the mime type by the extension or was
 this never implemented in the first place?

 I'm willing to work on this, it's somewhat annoying that sourcecode keeps
 getting opened with StyledEdit if it doesn't start with a C style comment
 :)

 (text/x-source-code has .lua as an extension, but i don't get any files
 recognized as this)
-- 
Ticket URL: <https://dev.haiku-os.org/ticket/10067#comment:6>
Haiku <https://dev.haiku-os.org>
The Haiku operating system.

Other related posts: