Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/Remmina/Remmina.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntenore Gatta <antenore@simbiosi.org>2019-11-01 19:16:51 +0300
committerAntenore Gatta <antenore@simbiosi.org>2019-11-01 19:16:51 +0300
commitabaa750f3fc085e1c6136fa9351caafc28efc1d2 (patch)
tree486a72f85cd2d99d5121c3ba437f64496b8c0e2a /CMakeLists.txt
parentd2a7875c49a01ef76874a81b8bdcacb443044568 (diff)
Force hicolor icon chache rebuild
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt8
1 files changed, 8 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 0c82c5179..defc2a128 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -358,6 +358,14 @@ option(WITH_ICON_CACHE "Generate the icon cache during install target" ON)
if(WITH_ICON_CACHE)
message(STATUS "Icon cache will be generated")
add_definitions(-DWITH_ICON_CACHE)
+ find_program(XDG_ICON_RESOURCE NAMES xdg-icon-resource)
+ if (XDG_ICON_RESOURCE)
+ message(STATUS "Theme icon cache will be rebuilt")
+ add_custom_target(desktop-icon
+ COMMAND ${XDG_ICON_RESOURCE} forceupdate --theme hicolor)
+ else()
+ message(WARNING "Cannot update icon cache: xdg-icon-resource not found")
+ endif()
else()
message(STATUS "Icons cache won't be generated automatically")
endif()