diff options
Diffstat (limited to 'poky/scripts/postinst-intercepts/update_gtk_icon_cache')
-rw-r--r-- | poky/scripts/postinst-intercepts/update_gtk_icon_cache | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/poky/scripts/postinst-intercepts/update_gtk_icon_cache b/poky/scripts/postinst-intercepts/update_gtk_icon_cache new file mode 100644 index 0000000000..99367a2855 --- /dev/null +++ b/poky/scripts/postinst-intercepts/update_gtk_icon_cache @@ -0,0 +1,17 @@ +#!/bin/sh +# +# SPDX-License-Identifier: MIT +# +# Post-install intercept for gtk-icon-cache.bbclass + +set -e + +# Update native pixbuf loaders +$STAGING_DIR_NATIVE/${libdir_native}/gdk-pixbuf-2.0/gdk-pixbuf-query-loaders --update-cache + +for icondir in $D/usr/share/icons/*/ ; do + if [ -d $icondir ] ; then + gtk-update-icon-cache -fqt $icondir + fi +done + |