slackbuilds_ponce/academic/scidavis/desktop_integration.txt

37 lines
1.1 KiB
Text
Raw Normal View History

###################### 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}
}
}
}