Update KiCad MIME type to kicad6

This avoids conflict with existing kicad installations.  Older version
files are preferentially opened by older KiCad installations while new
KiCad files get opened by version 6
This commit is contained in:
Seth Hillbrand 2021-10-11 12:45:08 -07:00
parent 1b7358f93a
commit 1cfff1f624
26 changed files with 24 additions and 20 deletions

View File

@ -5,7 +5,7 @@ Icon=eeschema
Type=Application Type=Application
Categories=Science;Electronics; Categories=Science;Electronics;
Exec=eeschema %f Exec=eeschema %f
MimeType=application/x-kicad-schematic; MimeType=application/x-kicad6-schematic;
Name=KiCad Schematic Editor (Standalone) Name=KiCad Schematic Editor (Standalone)
GenericName=Schematic Capture Tool GenericName=Schematic Capture Tool
Comment=Standalone schematic editor for KiCad schematics Comment=Standalone schematic editor for KiCad schematics

View File

@ -5,7 +5,7 @@ Icon=kicad
Type=Application Type=Application
Categories=Science;Electronics; Categories=Science;Electronics;
Exec=kicad %f Exec=kicad %f
MimeType=application/x-kicad-project; MimeType=application/x-kicad6-project;
Name=KiCad Name=KiCad
GenericName=EDA Suite GenericName=EDA Suite
Comment=Suite of tools for schematic design and circuit board layout Comment=Suite of tools for schematic design and circuit board layout

View File

@ -5,7 +5,7 @@ Icon=pcbnew
Type=Application Type=Application
Categories=Science;Electronics; Categories=Science;Electronics;
Exec=pcbnew %f Exec=pcbnew %f
MimeType=application/x-kicad-pcb; MimeType=application/x-kicad6-pcb;
Name=KiCad PCB Editor (Standalone) Name=KiCad PCB Editor (Standalone)
GenericName=PCB layout editor GenericName=PCB layout editor
Comment=Standalone circuit board editor for KiCad boards Comment=Standalone circuit board editor for KiCad boards

View File

@ -22,9 +22,9 @@
<binary>pcb_calculator</binary> <binary>pcb_calculator</binary>
<mediatype>application/x-gerber</mediatype> <mediatype>application/x-gerber</mediatype>
<mediatype>application/x-excellon</mediatype> <mediatype>application/x-excellon</mediatype>
<mediatype>application/x-kicad-project</mediatype> <mediatype>application/x-kicad6-project</mediatype>
<mediatype>application/x-kicad-schematic</mediatype> <mediatype>application/x-kicad6-schematic</mediatype>
<mediatype>application/x-kicad-pcb</mediatype> <mediatype>application/x-kicad6-pcb</mediatype>
</provides> </provides>
<translation type="gettext">kicad</translation> <translation type="gettext">kicad</translation>
@ -76,10 +76,10 @@
</screenshots> </screenshots>
<url type="homepage">https://www.kicad.org/</url> <url type="homepage">https://www.kicad.org/</url>
<url type="bugtracker">https://www.kicad.org/help/report-an-issue/</url> <url type="bugtracker">https://go.kicad.org/issue</url>
<url type="help">https://docs.kicad.org/</url> <url type="help">https://go.kicad.org/docs/6</url>
<url type="donation">https://go.kicad.org/donate</url> <url type="donation">https://go.kicad.org/donate</url>
<url type="translate">https://hosted.weblate.org/projects/kicad/</url> <url type="translate">https://go.kicad.org/translate</url>
<update_contact>kicad-developers@lists.launchpad.net</update_contact> <update_contact>kicad-developers@lists.launchpad.net</update_contact>
<developer_name>The KiCad Developers</developer_name> <developer_name>The KiCad Developers</developer_name>

View File

@ -1,33 +1,37 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info"> <mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info">
<mime-type type="application/x-kicad-project"> <mime-type type="application/x-kicad6-project">
<sub-class-of type="text/plain"/> <sub-class-of type="text/plain"/>
<comment>KiCad Project</comment> <comment>KiCad 6 Project</comment>
<generic-icon name="application-x-kicad-project"/> <generic-icon name="application-x-kicad6-project"/>
<glob pattern="*.pro" weight="50"/> <glob pattern="*.pro" weight="40"/>
<glob pattern="*.kicad_pro" weight="50"/> <glob pattern="*.kicad_pro" weight="50"/>
</mime-type> </mime-type>
<mime-type type="application/x-kicad-schematic"> <mime-type type="application/x-kicad6-schematic">
<sub-class-of type="text/plain"/> <sub-class-of type="text/plain"/>
<comment>KiCad Schematic</comment> <comment>KiCad 6 Schematic</comment>
<generic-icon name="application-x-kicad-schematic"/> <generic-icon name="application-x-kicad6-schematic"/>
<glob pattern="*.sch" weight="50"/> <glob pattern="*.sch" weight="40"/>
<glob pattern="*.kicad_sch" weight="50"/> <glob pattern="*.kicad_sch" weight="50"/>
<magic priority="50"> <magic priority="50">
<!--The new schematic file (.kicad_sch) header--> <!--The new schematic file (.kicad_sch) header-->
<match type="string" offset="0" value="(kicad_sch"/> <match type="string" offset="0" value="(kicad_sch"/>
</magic>
<magic priority="40">
<!--The old schematic file (.sch) header--> <!--The old schematic file (.sch) header-->
<match type="string" offset="0" value="EESchema Schematic File"/> <match type="string" offset="0" value="EESchema Schematic File"/>
</magic> </magic>
</mime-type> </mime-type>
<mime-type type="application/x-kicad-pcb"> <mime-type type="application/x-kicad6-pcb">
<sub-class-of type="text/plain"/> <sub-class-of type="text/plain"/>
<comment>KiCad Printed Circuit Board</comment> <comment>KiCad 6 Printed Circuit Board</comment>
<generic-icon name="application-x-kicad-pcb"/> <generic-icon name="application-x-kicad6-pcb"/>
<glob pattern="*.kicad_pcb" weight="50"/> <glob pattern="*.kicad_pcb" weight="50"/>
<magic priority="50"> <magic priority="50">
<!--The new board file (.kicad_pcb) header--> <!--The new board file (.kicad_pcb) header-->
<match type="string" offset="0" value="(kicad_pcb"/> <match type="string" offset="0" value="(kicad_pcb"/>
</magic>
<magic priority="40">
<!--The old board file (.brd) header--> <!--The old board file (.brd) header-->
<match type="string" offset="0" value="PCBNEW-BOARD"/> <match type="string" offset="0" value="PCBNEW-BOARD"/>
</magic> </magic>