Add weight to all linux MIME types, and make everything 50

This makes packaging scripts that have to modify the weights easier
to write. Also reduce the magic priority to 50 from 100 so everything
is the same priority/weight.
This commit is contained in:
Ian McInerney 2021-05-03 15:53:24 +01:00
parent 7c83a4a072
commit c0b27a2800
2 changed files with 10 additions and 10 deletions

View File

@ -3,7 +3,7 @@
<mime-type type="application/x-gerber">
<sub-class-of type="text/plain"/>
<comment>Gerber file</comment>
<glob pattern="*.gbr"/>
<glob pattern="*.gbr" weight="50"/>
<!--Try to match with some common opening commands-->
<magic priority="50">
<!--A comment line-->
@ -19,12 +19,12 @@
<mime-type type="application/x-gerber-job">
<sub-class-of type="text/plain"/>
<comment>Gerber job file</comment>
<glob pattern="*.gbrjob"/>
<glob pattern="*.gbrjob" weight="50"/>
</mime-type>
<mime-type type="application/x-excellon">
<sub-class-of type="text/plain"/>
<comment>Excellon drill file</comment>
<glob pattern="*.drl"/>
<glob pattern="*.drl" weight="50"/>
<magic priority="50">
<!--This is always the header for an excellon drill file-->
<match type="string" offset="0" value="M48"/>

View File

@ -4,16 +4,16 @@
<sub-class-of type="text/plain"/>
<comment>KiCad Project</comment>
<generic-icon name="application-x-kicad-project"/>
<glob pattern="*.pro"/>
<glob pattern="*.kicad_pro"/>
<glob pattern="*.pro" weight="50"/>
<glob pattern="*.kicad_pro" weight="50"/>
</mime-type>
<mime-type type="application/x-kicad-schematic">
<sub-class-of type="text/plain"/>
<comment>KiCad Schematic</comment>
<generic-icon name="application-x-kicad-schematic"/>
<glob pattern="*.sch"/>
<glob pattern="*.kicad_sch"/>
<magic priority="100">
<glob pattern="*.sch" weight="50"/>
<glob pattern="*.kicad_sch" weight="50"/>
<magic priority="50">
<!--The new schematic file (.kicad_sch) header-->
<match type="string" offset="0" value="(kicad_sch"/>
<!--The old schematic file (.sch) header-->
@ -24,8 +24,8 @@
<sub-class-of type="text/plain"/>
<comment>KiCad Printed Circuit Board</comment>
<generic-icon name="application-x-kicad-pcb"/>
<glob pattern="*.kicad_pcb"/>
<magic priority="100">
<glob pattern="*.kicad_pcb" weight="50"/>
<magic priority="50">
<!--The new board file (.kicad_pcb) header-->
<match type="string" offset="0" value="(kicad_pcb"/>
<!--The old board file (.brd) header-->