GTK: install MIME type specification.
parent
c5a3b43665
commit
572869dd48
|
@ -132,6 +132,9 @@ else()
|
|||
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/freedesktop/solvespace.desktop
|
||||
DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/applications)
|
||||
|
||||
install(FILES freedesktop/solvespace-slvs.xml
|
||||
DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/mime/packages)
|
||||
|
||||
foreach(SIZE 16x16 24x24 32x32 48x48)
|
||||
install(FILES freedesktop/solvespace-${SIZE}.png
|
||||
DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/icons/hicolor/${SIZE}/apps
|
||||
|
|
|
@ -0,0 +1,8 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info">
|
||||
<mime-type type="application/x-solvespace">
|
||||
<comment xml:lang="en">SolveSpace model</comment>
|
||||
<generic-icon name="solvespace"/>
|
||||
<glob pattern="*.slvs"/>
|
||||
</mime-type>
|
||||
</mime-info>
|
|
@ -3,6 +3,7 @@ Version=1.0
|
|||
Name=SolveSpace
|
||||
Comment=A parametric 2d/3d CAD
|
||||
Exec=${CMAKE_INSTALL_FULL_BINDIR}/solvespace
|
||||
MimeType=application/x-solvespace
|
||||
Icon=solvespace
|
||||
Type=Application
|
||||
Categories=Graphics
|
||||
|
|
Loading…
Reference in New Issue