Desktop integration: provide some scilab mime types 52/5252/4
Clément DAVID [Mon, 17 Oct 2011 07:39:40 +0000 (09:39 +0200)]
Change-Id: I0e521779f97af323be9634dcdf08a159fc66e2d7

scilab/Makefile.am
scilab/Makefile.in
scilab/desktop/scilab.desktop
scilab/desktop/scilab.xml [new file with mode: 0644]

index 62481d1..fef2e54 100644 (file)
@@ -140,6 +140,7 @@ $(top_srcdir)/desktop/puffin_32.png \
 $(top_srcdir)/desktop/puffin_48.png \
 $(top_srcdir)/desktop/puffin.png \
 $(top_srcdir)/desktop/puffin.icns \
+$(top_srcdir)/desktop/scilab.xml \
 $(top_srcdir)/desktop/scilab.icns
 
 valgrinddir=$(pkgdatadir)/tools/profiling
index 4bea91f..85ad43a 100644 (file)
@@ -655,6 +655,7 @@ $(top_srcdir)/desktop/puffin_32.png \
 $(top_srcdir)/desktop/puffin_48.png \
 $(top_srcdir)/desktop/puffin.png \
 $(top_srcdir)/desktop/puffin.icns \
+$(top_srcdir)/desktop/scilab.xml \
 $(top_srcdir)/desktop/scilab.icns
 
 valgrinddir = $(pkgdatadir)/tools/profiling
index b352407..22b8284 100644 (file)
@@ -7,6 +7,7 @@ GenericName=Scientific Software Package
 GenericName[fr]=Logiciel de calcul numérique
 GenericName[de]=Wissenschaftssoftware
 Icon=/usr/share/scilab/desktop/scilab.png
+MimeType=text/sci;text/sce;text/tst;application/xcos+xml
 Name=Scilab
 Name[de]=Scilab
 StartupNotify=false
diff --git a/scilab/desktop/scilab.xml b/scilab/desktop/scilab.xml
new file mode 100644 (file)
index 0000000..a0e1f4b
--- /dev/null
@@ -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="text/sci">
+    <comment xml:lang="en">Scilab macro</comment>
+    <glob pattern="*.sci"/>
+  </mime-type>
+  <mime-type type="text/sce">
+    <comment xml:lang="en">Scilab script</comment>
+    <glob pattern="*.sce"/>
+  </mime-type>
+  <mime-type type="text/tst">
+    <comment xml:lang="en">Scilab test</comment>
+    <glob pattern="*.tst"/>
+  </mime-type>
+  <mime-type type="application/xcos+xml">
+    <comment xml:lang="en">Scilab/Xcos schema</comment>
+    <glob pattern="*.xcos"/>
+  </mime-type>
+</mime-info>