That's really embarrassing, for some reason gmail was showing me the
wrong patch, here's the right one.

On Mon, Jun 6, 2016 at 11:22 AM, José Ignacio <[email protected]> wrote:
> Look carefully, I removed the magic section from the gerber mime type
> as requested.
>
> On Mon, Jun 6, 2016 at 9:41 AM, jp charras <[email protected]> wrote:
>> Le 05/06/2016 à 23:53, José Ignacio Romero a écrit :
>>> ---
>>>
>>>  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
>>
>> It is the same as the previous patch!
>>
>> --
>> Jean-Pierre CHARRAS
>>
>> _______________________________________________
>> Mailing list: https://launchpad.net/~kicad-developers
>> Post to     : [email protected]
>> Unsubscribe : https://launchpad.net/~kicad-developers
>> More help   : https://help.launchpad.net/ListHelp
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..fcd34b0
--- /dev/null
+++ b/resources/linux/mime/mime/packages/kicad-gerbers.xml
@@ -0,0 +1,16 @@
+<?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"/>
+  </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>

_______________________________________________
Mailing list: https://launchpad.net/~kicad-developers
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~kicad-developers
More help   : https://help.launchpad.net/ListHelp

Reply via email to