[gnome-music/wip/gbsneto/flatpak: 8/11] icons: Correctly update the cache



commit 9984f1abe4eb912b1f3b5b4b9f3aada199922068
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date:   Thu Dec 1 22:54:48 2016 -0200

    icons: Correctly update the cache
    
    Looks like we don't define the correct command, nor
    execute it the correct way.
    
    Fix it by setting the gtk-update-icon-cache var and
    running it with the correct arguments.

 data/Makefile.am |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/data/Makefile.am b/data/Makefile.am
index b1c9c88..10eda57 100644
--- a/data/Makefile.am
+++ b/data/Makefile.am
@@ -40,15 +40,17 @@ hicolor_icon_files = \
        $(hicolor_iconsymbolic_DATA) \
        icons/hicolor/gnome-music.svg
 
+gtk_update_icon_cache = gtk-update-icon-cache -f -t
+
 install-data-hook: update-icon-cache
 uninstall-hook: update-icon-cache
 update-icon-cache:
        @-if test -z "$(DESTDIR)"; then \
                echo "Updating Gtk hicolor icon cache."; \
-               $(gtk_update_hicolor_icon_cache); \
+               $(gtk_update_icon_cache) $(datadir)/icons/hicolor; \
        else \
                echo "*** Icon cache not updated.  After (un)install, run this:"; \
-               echo "***   $(gtk_update_hicolor_icon_cache)"; \
+               echo "***   $(gtk_update_icon_cache) $(datadir)/icons/hicolor"; \
        fi
 
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]