[beast: 2/41] DATA: document and simplify .bse and .bsewave mime registration
- From: Tim Janik <timj src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [beast: 2/41] DATA: document and simplify .bse and .bsewave mime registration
- Date: Fri, 16 Jun 2017 10:22:58 +0000 (UTC)
commit e01cfc5d4cf6d1c6fab086a0e82e49144bf7612c
Author: Tim Janik <timj gnu org>
Date: Wed Jun 14 01:35:10 2017 +0200
DATA: document and simplify .bse and .bsewave mime registration
Signed-off-by: Tim Janik <timj gnu org>
data/Makefile.am | 6 ++++--
data/beast.xml.in | 11 ++---------
2 files changed, 6 insertions(+), 11 deletions(-)
---
diff --git a/data/Makefile.am b/data/Makefile.am
index 51fedae..250a866 100644
--- a/data/Makefile.am
+++ b/data/Makefile.am
@@ -65,7 +65,7 @@ $(INTLMERGE_CACHE): $(PODEPS)
%.keys: %.keys.in $(INTLMERGE_CACHE)
LC_ALL=C $(INTLMERGE) -k -u -c $(INTLMERGE_CACHE) $(top_srcdir)/po $< $@
-# generate and install .desktop file
+# generate and install .desktop file, see:
https://help.gnome.org/admin/system-admin-guide/stable/mime-types-custom.html
dotdesktopdir = $(datarootdir)/applications
dotdesktop_in_files = beast.desktop.in
dotdesktop_DATA = $(dotdesktop_in_files:.desktop.in=.desktop)
@@ -73,7 +73,9 @@ beast.desktop: beast.desktop.in
CLEANFILES += beast.desktop
EXTRA_DIST += $(dotdesktop_in_files)
-# generate and install .xml mime info file
+# generate and install .xml mime info file, see:
https://help.gnome.org/admin/system-admin-guide/stable/mime-types-custom.html
+# gvfs-info testfile.bse # yields: standard::content-type: audio/x-bse
+# gvfs-mime --query audio/x-bse # yields: Registered applications: beast.desktop
sharedmimedir = $(datarootdir)/mime
sharedmimepackagedir = $(sharedmimedir)/packages
sharedmimepackage_in_files = beast.xml.in
diff --git a/data/beast.xml.in b/data/beast.xml.in
index 5025b8d..99475eb 100644
--- a/data/beast.xml.in
+++ b/data/beast.xml.in
@@ -2,17 +2,10 @@
<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info">
<mime-type type="audio/x-bse">
<glob pattern="*.bse"/>
- <magic priority="80">
- <match type="string" value="; BseProject" offset="0:64"/>
- <match type="string" value="(bse-version " offset="0:64"/>
- </magic>
- <_comment>BSE Synthesis File</_comment>
+ <comment>Beast Project File</comment>
</mime-type>
<mime-type type="audio/x-bsewave">
<glob pattern="*.bsewave"/>
- <magic priority="80">
- <match type="string" value="#BseWave1" offset="0:64"/>
- </magic>
- <_comment>BSE Multi-Part Wave File</_comment>
+ <comment>Beast Multi-Part Wave File</comment>
</mime-type>
</mime-info>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]