desktop: add mimetypes application/x-spss-sps and application/x-spss-spv
authorFriedrich Beckmann <friedrich.beckmann@gmx.de>
Sun, 21 Jun 2020 09:48:41 +0000 (11:48 +0200)
committerFriedrich Beckmann <friedrich.beckmann@gmx.de>
Sun, 21 Jun 2020 11:34:09 +0000 (13:34 +0200)
I added an xml mime package which relates the files .sps and .spv
to a mime type. Via that mime type the files can then be openend
by clicking in the file browser.

src/ui/gui/automake.mk
src/ui/gui/pspp.xml [new file with mode: 0644]

index 382202cd7cf30ae1f721ea16344d532271b61c43..b49423110fcdf6352b36ad85a91a256fa0c17674 100644 (file)
@@ -401,6 +401,10 @@ src/ui/gui/psppire-marshal.c: src/ui/gui/marshaller-list
 src/ui/gui/psppire-marshal.h: src/ui/gui/marshaller-list
        $(AM_V_GEN)$(GLIB_GENMARSHAL) --header --prefix=psppire_marshal $? > $@
 
+mimedir = $(datadir)/mime/packages
+mime_DATA = src/ui/gui/pspp.xml
+EXTRA_DIST += src/ui/gui/pspp.xml
+
 desktopdir = $(datadir)/applications
 desktop_DATA = src/ui/gui/org.fsf.pspp.desktop
 
diff --git a/src/ui/gui/pspp.xml b/src/ui/gui/pspp.xml
new file mode 100644 (file)
index 0000000..4f925c4
--- /dev/null
@@ -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-spss-sps">
+    <comment>SPSS syntax file</comment>
+    <acronym>SPSS</acronym>
+    <expanded-acronym>Statistical Package for the Social Sciences</expanded-acronym>
+    <glob pattern="*.sps"/>
+  </mime-type>
+  <mime-type type="application/x-spss-spv">
+    <comment>SPSS output file</comment>
+    <acronym>SPSS</acronym>
+    <expanded-acronym>Statistical Package for the Social Sciences</expanded-acronym>
+    <glob pattern="*.spv"/>
+  </mime-type>
+</mime-info>
+