aboutsummaryrefslogtreecommitdiff
path: root/qmidiplayer-desktop
diff options
context:
space:
mode:
Diffstat (limited to 'qmidiplayer-desktop')
-rw-r--r--qmidiplayer-desktop/qmidiplayer-desktop.pro4
-rw-r--r--qmidiplayer-desktop/qmidiplayer.mime11
2 files changed, 14 insertions, 1 deletions
diff --git a/qmidiplayer-desktop/qmidiplayer-desktop.pro b/qmidiplayer-desktop/qmidiplayer-desktop.pro
index 5572479..4a04d6b 100644
--- a/qmidiplayer-desktop/qmidiplayer-desktop.pro
+++ b/qmidiplayer-desktop/qmidiplayer-desktop.pro
@@ -82,7 +82,7 @@ unix{
BINDIR = $$PREFIX/bin
target.path = $$BINDIR
DATADIR = $$PREFIX/share
- INSTALLS += target desktop iconbmp iconsvg iconxpm doc docimg appdata menu
+ INSTALLS += target desktop iconbmp iconsvg iconxpm doc docimg appdata menu mimetype
desktop.path = $$DATADIR/applications
desktop.files += $${TARGET}.desktop
iconbmp.path = $$DATADIR/icons/hicolor/64x64/apps
@@ -99,6 +99,8 @@ unix{
appdata.files += $${TARGET}.appdata.xml
menu.path = $${DATADIR}/menu
menu.files += ./menu/$${TARGET}
+ mimetype.path = $$DATADIR/mime/packages
+ mimetype.files += $${TARGET}.mime
QMAKE_CXXFLAGS += -Wall
LIBS += -lfluidsynth -lrtmidi -ldl
}
diff --git a/qmidiplayer-desktop/qmidiplayer.mime b/qmidiplayer-desktop/qmidiplayer.mime
new file mode 100644
index 0000000..becf239
--- /dev/null
+++ b/qmidiplayer-desktop/qmidiplayer.mime
@@ -0,0 +1,11 @@
+<?xml version="1.0"?>
+<mime-info xmlns='http://www.freedesktop.org/standards/shared-mime-info'>
+ <mime-type type="audio/midi">
+ <comment>MIDI audio</comment>
+ <magic priority="50">
+ <match type="string" offset="0" value="MThd"/>
+ </magic>
+ <glob pattern="*.mid"/>
+ <glob pattern="*.midi"/>
+ </mime-type>
+</mime-info>