summaryrefslogtreecommitdiff
path: root/muse2/packaging
diff options
context:
space:
mode:
Diffstat (limited to 'muse2/packaging')
-rw-r--r--muse2/packaging/CMakeLists.txt16
-rw-r--r--muse2/packaging/muse.desktop.in (renamed from muse2/packaging/muse.desktop)3
-rw-r--r--muse2/packaging/muse.xml9
3 files changed, 26 insertions, 2 deletions
diff --git a/muse2/packaging/CMakeLists.txt b/muse2/packaging/CMakeLists.txt
index e9b749b2..2582848a 100644
--- a/muse2/packaging/CMakeLists.txt
+++ b/muse2/packaging/CMakeLists.txt
@@ -18,10 +18,24 @@
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
#=============================================================================
+#
+# produce the .desktop file
+#
+configure_file (
+ muse.desktop.in
+ ${PROJECT_BINARY_DIR}/packaging/muse.desktop
+ )
+
+#
+# install the desktop and mime files
+#
install( FILES muse_icon.png
DESTINATION ${SHARE_INSTALL_PREFIX}/icons/hicolor/64x64/apps/
)
-install( FILES muse.desktop
+install( FILES ${PROJECT_BINARY_DIR}/packaging/muse.desktop
DESTINATION ${SHARE_INSTALL_PREFIX}/applications/
)
+install( FILES muse.xml
+ DESTINATION ${SHARE_INSTALL_PREFIX}/mime/packages/
+ )
diff --git a/muse2/packaging/muse.desktop b/muse2/packaging/muse.desktop.in
index e8444960..8977cbec 100644
--- a/muse2/packaging/muse.desktop
+++ b/muse2/packaging/muse.desktop.in
@@ -4,6 +4,7 @@ GenericName=Audio/MIDI Sequencer
Comment=Midi Music Editor
Icon=muse_icon
Type=Application
-Exec=muse2
+Exec=${MusE_EXEC_NAME}
Terminal=false
Categories=Sequencer;Midi;X-Jack;X-Sequencers;X-MIDI;Audio;AudioVideo;
+MimeType=audio/midi;application/x-muse;application/xml;
diff --git a/muse2/packaging/muse.xml b/muse2/packaging/muse.xml
new file mode 100644
index 00000000..0b02e74a
--- /dev/null
+++ b/muse2/packaging/muse.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info">
+ <mime-type type="application/x-muse">
+ <comment>MusE file</comment>
+ <glob pattern="*.med"/>
+ <glob pattern="*.med.bz2"/>
+ <glob pattern="*.med.gz"/>
+ </mime-type>
+</mime-info>