adwaita-icon-theme: make post-install succeed when gtk is not installed

gtk-update-icon-cache is not installed with gtk3,
probably to avoid a conflict with gtk,
but it is better to exit without an error (right?).
This commit is contained in:
Fun 2017-11-05 22:02:34 +02:00 committed by Fredrik Rinnestam
parent ced927c5d6
commit 83e4e5ce5e

View File

@ -1,4 +1,7 @@
#!/bin/sh
gdk-pixbuf-query-loaders --update-cache
gtk-update-icon-cache -q -t -f /usr/share/icons/Adwaita
# gtk-update-icon-cache comes with gtk, not with gtk3
if [ -x /usr/bin/gtk-update-icon-cache ]; then
gtk-update-icon-cache -q -t -f /usr/share/icons/Adwaita
fi