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