From: Uwe Hermann Date: Sun, 11 Jun 2017 21:19:27 +0000 (+0200) Subject: Add a MIME info file (and icons) for sigrok session files. X-Git-Tag: libsigrok-0.5.0~4 X-Git-Url: http://sigrok.org/gitweb/?p=libsigrok.git;a=commitdiff_plain;h=567d1feae8597366582a57db82bc3c905eecb665 Add a MIME info file (and icons) for sigrok session files. File template by Stefan BrĂ¼ns, thanks! This fixes bug #857. (the XML file is moved from PulseView to libsigrok since this is not PulseView-specific) Add a 48x48 PNG and a scalable SVG for the MIME type as well. Install the XML file and in the icons in the respective standard paths. --- diff --git a/Makefile.am b/Makefile.am index 1afed1e1..c9842295 100644 --- a/Makefile.am +++ b/Makefile.am @@ -544,6 +544,15 @@ noinst_HEADERS = src/libsigrok-internal.h pkgconfigdir = $(libdir)/pkgconfig pkgconfig_DATA = libsigrok.pc +mimeappdir = $(datadir)/mime/application +mimeapp_DATA = contrib/vnd.sigrok.session.xml + +mimeicondir = $(datadir)/icons/hicolor/48x48/mimetypes +mimeicon_DATA = contrib/libsigrok.png + +mimeiconscalabledir = $(datadir)/icons/hicolor/scalable/mimetypes +mimeiconscalable_DATA = contrib/libsigrok.svg + EXTRA_DIST = \ Doxyfile \ HACKING \ @@ -569,6 +578,9 @@ EXTRA_DIST = \ bindings/swig/doc.py \ bindings/swig/templates.i \ contrib/libsigrok_112x112.png \ + contrib/libsigrok.png \ + contrib/libsigrok.svg \ + contrib/vnd.sigrok.session.xml \ contrib/z60_libsigrok.rules if HAVE_CHECK diff --git a/contrib/libsigrok.png b/contrib/libsigrok.png new file mode 100644 index 00000000..5b35dfed Binary files /dev/null and b/contrib/libsigrok.png differ diff --git a/contrib/libsigrok.svg b/contrib/libsigrok.svg new file mode 100644 index 00000000..620028d7 --- /dev/null +++ b/contrib/libsigrok.svg @@ -0,0 +1,234 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/contrib/vnd.sigrok.session.xml b/contrib/vnd.sigrok.session.xml new file mode 100644 index 00000000..50a01835 --- /dev/null +++ b/contrib/vnd.sigrok.session.xml @@ -0,0 +1,9 @@ + + + + + sigrok session + + + +