Register a MIME type.
This commit is contained in:
parent
c07d5f552d
commit
6ff28b0992
@ -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})
|
||||
|
@ -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
11
share/logdiag.xml
Normal 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>
|
Loading…
Reference in New Issue
Block a user