From d598e1075c9f192bf5ce197ece498560e3e46eb3 Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Thu, 11 Jan 2018 16:26:38 -0600 Subject: Support INKSCAPE_ICONPATH in the desktop file --- CMakeScripts/inkscape-desktop.cmake | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'CMakeScripts') 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) -- cgit v1.2.3