diff options
Diffstat (limited to 'academic/scidavis/desktop_integration.txt')
-rw-r--r-- | academic/scidavis/desktop_integration.txt | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/academic/scidavis/desktop_integration.txt b/academic/scidavis/desktop_integration.txt new file mode 100644 index 0000000000000..029fc66f8303b --- /dev/null +++ b/academic/scidavis/desktop_integration.txt @@ -0,0 +1,36 @@ +###################### DESKTOP INTEGRATION ################################## + +unix { + desktop_entry.files = scidavis.desktop + desktop_entry.path = "$$INSTALLBASE/share/applications" + + mime_package.files = scidavis.xml + mime_package.path = "$$INSTALLBASE/share/mime/packages" + + #deprecated + mime_link.files = x-sciprj.desktop + mime_link.path = "$$INSTALLBASE/share/mimelnk/application" + + contains(INSTALLS, icons) { + # scalable icon + icons.files = icons/scidavis.svg + icons.path = "$$INSTALLBASE/share/icons/hicolor/scalable/apps" + + # hicolor icons for different resolutions + resolutions = 16 22 32 48 64 128 + for(res, resolutions) { + eval(icon_hicolor_$${res}.files = icons/hicolor-$${res}/scidavis.png) + eval(icon_hicolor_$${res}.path = "$$INSTALLBASE/share/icons/hicolor/$${res}x$${res}/apps") + INSTALLS += icon_hicolor_$${res} + } + + # locolor icons for different resolutions + resolutions = 16 22 32 + for(res, resolutions) { + eval(icon_locolor_$${res}.files = icons/locolor-$${res}/scidavis.png) + eval(icon_locolor_$${res}.path = "$$INSTALLBASE/share/icons/locolor/$${res}x$${res}/apps") + + INSTALLS += icon_locolor_$${res} + } + } +} |