diff options
author | Chris Xiong <chirs241097@gmail.com> | 2017-02-01 17:48:03 +0800 |
---|---|---|
committer | Chris Xiong <chirs241097@gmail.com> | 2017-02-01 17:48:03 +0800 |
commit | eddc629bd637ec5d9260849d095b6951a437360d (patch) | |
tree | 98fd45c4b4e2ed3bdcc213722de76df0decd3b18 /qmidiplayer-desktop | |
parent | 8a0d671e1a77c58142d0cbe82f40ee64bcae2be5 (diff) | |
download | QMidiPlayer-eddc629bd637ec5d9260849d095b6951a437360d.tar.xz |
Make packaging qmidiplayer less painful.
Add mime info.
Do not throw integers.
Fix incorrect font paths in Arch Linux.
Diffstat (limited to 'qmidiplayer-desktop')
-rw-r--r-- | qmidiplayer-desktop/qmidiplayer-desktop.pro | 4 | ||||
-rw-r--r-- | qmidiplayer-desktop/qmidiplayer.mime | 11 |
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> |