[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 17:38:29 -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):

 I don't know of any version control i could use that would preserve the
 mimetypes.
 Not even our own sourcecode has those assigned, .cpp files get opened by
 the Code editor only if they start with */,
 i would argue that detecting file extensions is still crucial even now.

 None of my lua files start with require :), the problem is moreso that the
 only read difference for unknown files is .lua vs .txt, and even though we
 have the rule to make this match to text/x-source-code it never gets
 applied.
-- 
Ticket URL: <https://dev.haiku-os.org/ticket/10067#comment:8>
Haiku <https://dev.haiku-os.org>
The Haiku operating system.

Other related posts: