From 572869dd48267313b45d260e80c686b5d6c4d95b Mon Sep 17 00:00:00 2001 From: Kevin Zheng Date: Thu, 12 Jul 2018 00:03:37 -0500 Subject: [PATCH] GTK: install MIME type specification. --- res/CMakeLists.txt | 3 +++ res/freedesktop/solvespace-slvs.xml | 8 ++++++++ res/freedesktop/solvespace.desktop.in | 1 + 3 files changed, 12 insertions(+) create mode 100644 res/freedesktop/solvespace-slvs.xml 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