changeset 19831:737b5d449aaf

Add "text/x-octave" and "text/x-matlab" as MIME types we are able to handle. * etc/icons/octave.desktop.in: according to the latest desktop entry specs (version 1.1), we can register the MIME types supported by this application. These are "the MIME types that an application knows how to handle". The only MIME types that freedesktop currently recognizes are "text/x-octave" and "text/x-matlab". Once we officialy register a MIME type with IANA, we should add a mime type for vendor .m octave files and possible .oct. * etc/icons/Makefile.am: since we now define Octave supported MIME types, we need to rebuild the MIME types application database as part of Octave installation (unless we are not doing a desktop installation.
author Carnë Draug <carandraug@octave.org>
date Mon, 23 Feb 2015 15:56:44 +0000
parents d0c7b5346d55
children a1acca0c2216
files etc/icons/Makefile.am etc/icons/octave.desktop.in
diffstat 2 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/etc/icons/Makefile.am	Mon Feb 23 08:14:25 2015 -0500
+++ b/etc/icons/Makefile.am	Mon Feb 23 15:56:44 2015 +0000
@@ -79,7 +79,7 @@
 install-data-local:
 	-if test -n "$(DESKTOP_FILE_INSTALL)"; then \
 	  $(DESKTOP_FILE_INSTALL) --dir=$(DESTDIR)$(datadir)/applications \
-	    --vendor $(VENDOR) octave.desktop; \
+	    --rebuild-mime-info-cache --vendor $(VENDOR) octave.desktop; \
 	fi
 	for f in $(BUILT_PNG_ICONS); do \
 	  size=`echo $$f | $(SED) -n -e "s/.*-\([0-9]\+\)\.png/\1/p"`; \
--- a/etc/icons/octave.desktop.in	Mon Feb 23 08:14:25 2015 -0500
+++ b/etc/icons/octave.desktop.in	Mon Feb 23 15:56:44 2015 +0000
@@ -8,3 +8,4 @@
 Type=Application
 Categories=Education;Science;Math;
 StartupNotify=false
+MimeType=text/x-octave;text/x-matlab;