← Back to team overview

kicad-developers team mailing list archive

[PATCH 1/5] Fix pcbnew extension and mimetype in MIME XML package file

 

This file registers the file extensions used by kicad and their
corresponding mimetypes. Before this change the file was refering to
the old .brd extension and the wrong mime type. The file was also
renamed to kicad-kicad.xml to conform to the XDG spec which expects a
vendor-product pair as the package name.
---
 resources/linux/mime/mime/packages/kicad-kicad.xml | 21 +++++++++++++++++++++
 resources/linux/mime/mime/packages/kicad.xml       | 21 ---------------------
 2 files changed, 21 insertions(+), 21 deletions(-)
 create mode 100644 resources/linux/mime/mime/packages/kicad-kicad.xml
 delete mode 100644 resources/linux/mime/mime/packages/kicad.xml

diff --git a/resources/linux/mime/mime/packages/kicad-kicad.xml b/resources/linux/mime/mime/packages/kicad-kicad.xml
new file mode 100644
index 0000000..0c3e024
--- /dev/null
+++ b/resources/linux/mime/mime/packages/kicad-kicad.xml
@@ -0,0 +1,21 @@
+<?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>
+		<comment xml:lang="fr">Projet KiCad</comment>
+		<glob pattern="*.pro"/>
+	</mime-type>
+	<mime-type type="application/x-kicad-schematic">
+		<sub-class-of type="text/plain"/>
+		<comment>KiCad Schematic</comment>
+		<comment xml:lang="fr">Schéma électronique KiCad</comment>
+		<glob pattern="*.sch"/>
+	</mime-type>
+	<mime-type type="application/x-kicad-pcb">
+		<sub-class-of type="text/plain"/>
+		<comment>KiCad Printed Circuit Board</comment>
+		<comment xml:lang="fr">Circuit imprimé KiCad</comment>
+		<glob pattern="*.kicad_pcb"/>
+	</mime-type>
+</mime-info>
diff --git a/resources/linux/mime/mime/packages/kicad.xml b/resources/linux/mime/mime/packages/kicad.xml
deleted file mode 100644
index 3b945dd..0000000
--- a/resources/linux/mime/mime/packages/kicad.xml
+++ /dev/null
@@ -1,21 +0,0 @@
-<?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>
-		<comment xml:lang="fr">Projet KiCad</comment>
-		<glob pattern="*.pro"/>
-	</mime-type>
-	<mime-type type="application/x-kicad-schematic">
-		<sub-class-of type="text/plain"/>
-		<comment>KiCad Schematic</comment>
-		<comment xml:lang="fr">Schéma électronique KiCad</comment>
-		<glob pattern="*.sch"/>
-	</mime-type>
-	<mime-type type="application/x-kicad-pcbnew">
-		<sub-class-of type="text/plain"/>
-		<comment>KiCad PCB</comment>
-		<comment xml:lang="fr">Circuit imprimé KiCad</comment>
-		<glob pattern="*.brd"/>
-	</mime-type>
-</mime-info>

References