diff options
| author | Ted Gould <ted@gould.cx> | 2018-01-11 22:26:38 +0000 |
|---|---|---|
| committer | Ted Gould <ted@gould.cx> | 2018-01-13 18:24:56 +0000 |
| commit | d598e1075c9f192bf5ce197ece498560e3e46eb3 (patch) | |
| tree | fcf32b3d010af7142e0f46842d7b94387895d869 /CMakeScripts | |
| parent | Grab the snapcraft.yaml from the 0.92.x branch (diff) | |
| download | inkscape-d598e1075c9f192bf5ce197ece498560e3e46eb3.tar.gz inkscape-d598e1075c9f192bf5ce197ece498560e3e46eb3.zip | |
Support INKSCAPE_ICONPATH in the desktop file
Diffstat (limited to 'CMakeScripts')
| -rw-r--r-- | CMakeScripts/inkscape-desktop.cmake | 8 |
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) |
