diff --git a/res/CMakeLists.txt b/res/CMakeLists.txt index 0210218c..0a32df79 100644 --- a/res/CMakeLists.txt +++ b/res/CMakeLists.txt @@ -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 diff --git a/res/freedesktop/solvespace-slvs.xml b/res/freedesktop/solvespace-slvs.xml new file mode 100644 index 00000000..8ee132ce --- /dev/null +++ b/res/freedesktop/solvespace-slvs.xml @@ -0,0 +1,8 @@ + + + + SolveSpace model + + + + diff --git a/res/freedesktop/solvespace.desktop.in b/res/freedesktop/solvespace.desktop.in index 68b3cb73..8c6fb24a 100644 --- a/res/freedesktop/solvespace.desktop.in +++ b/res/freedesktop/solvespace.desktop.in @@ -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