kicad-developers team mailing list archive
-
kicad-developers team
-
Mailing list archive
-
Message #24883
[PATCH] Add mime package for gerber and excellon files
---
This version of the patch doesn't have the magic string for gerbers
as it was incorrect, it will only match gerber files with the
official .gbr extension.
resources/linux/mime/mime/packages/kicad-gerbers.xml | 19 +++++++++++++++++++
1 file changed, 19 insertions(+)
create mode 100644 resources/linux/mime/mime/packages/kicad-gerbers.xml
diff --git a/resources/linux/mime/mime/packages/kicad-gerbers.xml b/resources/linux/mime/mime/packages/kicad-gerbers.xml
new file mode 100644
index 0000000..5aef642
--- /dev/null
+++ b/resources/linux/mime/mime/packages/kicad-gerbers.xml
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info">
+ <mime-type type="application/x-gerber">
+ <sub-class-of type="text/plain"/>
+ <comment>Gerber File</comment>
+ <glob pattern="*.gbr"/>
+ <magic priority="50">
+ <match value="G04" type="string" offset="0"/>
+ </magic>
+ </mime-type>
+ <mime-type type="application/x-excellon">
+ <sub-class-of type="text/plain"/>
+ <_comment>Excellon drill file</_comment>
+ <glob pattern="*.drl"/>
+ <magic priority="50">
+ <match value="M48" type="string" offset="0"/>
+ </magic>
+ </mime-type>
+</mime-info>
Follow ups
References