summaryrefslogtreecommitdiffstats
path: root/CMakeScripts
diff options
context:
space:
mode:
Diffstat (limited to 'CMakeScripts')
-rw-r--r--CMakeScripts/inkscape-desktop.cmake8
1 files changed, 8 insertions, 0 deletions
diff --git a/CMakeScripts/inkscape-desktop.cmake b/CMakeScripts/inkscape-desktop.cmake
index bf3b2b7b7..1d74c98d5 100644
--- a/CMakeScripts/inkscape-desktop.cmake
+++ b/CMakeScripts/inkscape-desktop.cmake
@@ -5,5 +5,13 @@
# - ${INKSCAPE_SOURCE_DIR}
# - ${INKSCAPE_BINARY_DIR}
message("building inkscape.desktop")
+
set(INKSCAPE_MIMETYPE "image/svg+xml;image/svg+xml-compressed;application/vnd.corel-draw;application/pdf;application/postscript;image/x-eps;application/illustrator;image/cgm;image/x-wmf;application/x-xccx;application/x-xcgm;application/x-xcdt;application/x-xsk1;application/x-xcmx;image/x-xcdr;application/visio;application/x-visio;application/vnd.visio;application/visio.drawing;application/vsd;application/x-vsd;image/x-vsd;")
+
+if (ENABLE_BINRELOC)
+ set(INKSCAPE_ICONPATH "\${SNAP}/share/inkscape/branding/inkscape.svg")
+else()
+ set(INKSCAPE_ICONPATH "inkscape")
+endif()
+
configure_file(${INKSCAPE_BINARY_DIR}/inkscape.desktop.template.in ${INKSCAPE_BINARY_DIR}/inkscape.desktop)