Register a MIME type.

This commit is contained in:
Přemysl Eric Janouch 2011-01-30 15:29:19 +01:00
parent c07d5f552d
commit 6ff28b0992
3 changed files with 13 additions and 1 deletions

View File

@ -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})

View File

@ -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;

11
share/logdiag.xml Normal file
View File

@ -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>