]> git.sesse.net Git - kdenlive/commitdiff
install correct mimetype for application and project files
authorJean-Baptiste Mardelle <jb@kdenlive.org>
Wed, 16 Jul 2008 22:13:15 +0000 (22:13 +0000)
committerJean-Baptiste Mardelle <jb@kdenlive.org>
Wed, 16 Jul 2008 22:13:15 +0000 (22:13 +0000)
svn path=/branches/KDE4/; revision=2318

src/CMakeLists.txt
src/application-x-kdenlive.svgz [new file with mode: 0644]
src/kdenlive.desktop
src/mimetypes/CMakeLists.txt [new file with mode: 0644]
src/mimetypes/kdenlive.xml [new file with mode: 0644]

index f5ac8ac27921815ece8ee71eb429d9784d330160..a213f33e9f414c0c1e059b7ffb29110445b2d407 100644 (file)
@@ -1,5 +1,6 @@
 
 add_subdirectory( widgets )
+add_subdirectory( mimetypes )
 
 find_package(Nepomuk REQUIRED)
 
@@ -138,4 +139,6 @@ install(TARGETS kdenlive DESTINATION ${BIN_INSTALL_DIR})
 install( FILES kdenliveui.rc DESTINATION  ${DATA_INSTALL_DIR}/kdenlive )
 install (FILES kdenlivesettings.kcfg DESTINATION share/config.kcfg)
 install (FILES kdenlive.desktop DESTINATION share/applications/kde)
+install (FILES application-x-kdenlive.svgz DESTINATION share/icons/oxygen/scalable/mimetypes)
+
 
diff --git a/src/application-x-kdenlive.svgz b/src/application-x-kdenlive.svgz
new file mode 100644 (file)
index 0000000..a54f4cb
Binary files /dev/null and b/src/application-x-kdenlive.svgz differ
index 2c53562cf316c16429a195b4575ee51713058b68..b6a97642f62a6a9f694fa7dceaea31e639a89100 100644 (file)
@@ -11,5 +11,5 @@ Comment[de]=
 Terminal=0
 Name=Kdenlive
 Name[de]=Kdenlive
-MimeType=application/vnd.kde.kdenlive;
+MimeType=application/x-kdenlive;
 Categories=Qt;KDE;AudioVideo;
diff --git a/src/mimetypes/CMakeLists.txt b/src/mimetypes/CMakeLists.txt
new file mode 100644 (file)
index 0000000..2b7696b
--- /dev/null
@@ -0,0 +1,4 @@
+find_package(SharedMimeInfo REQUIRED)
+
+install(FILES kdenlive.xml dv-video.xml hdv-video.xml DESTINATION ${XDG_MIME_INSTALL_DIR})
+update_xdg_mimetypes(${XDG_MIME_INSTALL_DIR})
\ No newline at end of file
diff --git a/src/mimetypes/kdenlive.xml b/src/mimetypes/kdenlive.xml
new file mode 100644 (file)
index 0000000..14c1717
--- /dev/null
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info">
+  <mime-type type="application/x-kdenlive">
+    <comment>Kdenlive video project document</comment>
+    <glob pattern="*.kdenlive"/>
+  </mime-type>
+</mime-info>