Update icon cache after uninstall: Closes #5755

Now using a post-uninstall target to ensure that desktop and icon
caches are updated *after* the icon/.desktop file are deleted.
This commit is contained in:
Jim Nelson 2012-10-08 17:17:43 -07:00
parent f87a450431
commit be64553a8e
4 changed files with 18 additions and 5 deletions

View file

@ -44,15 +44,17 @@ if (ICON_UPDATE)
CODE
"execute_process (COMMAND gtk-update-icon-cache -t -f ${CMAKE_INSTALL_PREFIX}/share/icons/hicolor)"
CODE
"message (STATUS \"Updating icon cache\")"
"message (STATUS \"Updated icon cache in ${CMAKE_INSTALL_PREFIX}/share/icons/hicolor\")"
)
add_custom_target(
uninstall-icon-cache
COMMAND
gtk-update-icon-cache -t -f ${CMAKE_INSTALL_PREFIX}/share/icons/hicolor
COMMENT
"Updated icon cache after uninstall in ${CMAKE_INSTALL_PREFIX}/share/icons/hicolor"
)
add_dependencies(uninstall uninstall-icon-cache)
add_dependencies(post-uninstall uninstall-icon-cache)
endif ()