aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPřemysl Janouch <p.janouch@gmail.com>2011-01-30 15:29:19 +0100
committerPřemysl Janouch <p.janouch@gmail.com>2011-01-30 15:29:19 +0100
commit6ff28b09927d87190fe4961cc61bd9e0f9879ba8 (patch)
tree75a9beeaee9254e3c82d1eda323a9ecd7e4d9dda
parentc07d5f552dfcc9b8b55ecbe7cb87b18eb78be798 (diff)
downloadlogdiag-6ff28b09927d87190fe4961cc61bd9e0f9879ba8.tar.gz
logdiag-6ff28b09927d87190fe4961cc61bd9e0f9879ba8.tar.xz
logdiag-6ff28b09927d87190fe4961cc61bd9e0f9879ba8.zip
Register a MIME type.
-rw-r--r--CMakeLists.txt1
-rw-r--r--share/logdiag.desktop2
-rw-r--r--share/logdiag.xml11
3 files changed, 13 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 0b0e4fa..7fa70ac 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -250,6 +250,7 @@ if (WIN32)
else (WIN32)
install (TARGETS logdiag DESTINATION bin)
install (FILES share/logdiag.desktop DESTINATION share/applications)
+ install (FILES share/logdiag.xml DESTINATION share/mime/packages)
install (DIRECTORY share/icons DESTINATION share)
install (DIRECTORY "${project_DOC_DIR}/html/"
DESTINATION share/gtk-doc/html/${CMAKE_PROJECT_NAME})
diff --git a/share/logdiag.desktop b/share/logdiag.desktop
index 485e0de..390676e 100644
--- a/share/logdiag.desktop
+++ b/share/logdiag.desktop
@@ -5,5 +5,5 @@ GenericName=Schematic Editor
GenericName[cs]=Editor schémat
Icon=logdiag
Exec=logdiag %f
+MimeType=application/x-logdiag-diagram;
Categories=Graphics;VectorGraphics;Electricity;Engineering;GTK;
-
diff --git a/share/logdiag.xml b/share/logdiag.xml
new file mode 100644
index 0000000..b8b9cab
--- /dev/null
+++ b/share/logdiag.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info">
+ <mime-type type="application/x-logdiag-diagram">
+ <comment>logdiag diagram</comment>
+ <comment xml:lang="cs">Diagram logdiag</comment>
+ <magic priority="50">
+ <match type="string" offset="0" value="/* logdiag diagram */"/>
+ </magic>
+ <glob pattern="*.ldd"/>
+ </mime-type>
+</mime-info>