blob: a92bd840c6b6e2ffcb6341135e28c742c82da20b [file] [log] [blame]
Patrick Williamsc124f4f2015-09-15 14:41:29 -05001#!/bin/sh
Brad Bishopc342db32019-05-15 21:57:59 -04002#
3# SPDX-License-Identifier: MIT
4#
Brad Bishop96ff1982019-08-19 13:50:42 -04005# Post-install intercept for gtk-icon-cache.bbclass
Patrick Williamsc124f4f2015-09-15 14:41:29 -05006
7set -e
Patrick Williamsf1e5d692016-03-30 15:21:19 -05008
Brad Bishop96ff1982019-08-19 13:50:42 -04009# Update native pixbuf loaders
Patrick Williamsf1e5d692016-03-30 15:21:19 -050010$STAGING_DIR_NATIVE/${libdir_native}/gdk-pixbuf-2.0/gdk-pixbuf-query-loaders --update-cache
Patrick Williamsc124f4f2015-09-15 14:41:29 -050011
12for icondir in $D/usr/share/icons/*/ ; do
13 if [ -d $icondir ] ; then
Patrick Williams169d7bc2024-01-05 11:33:25 -060014 for gtkuic_cmd in gtk-update-icon-cache gtk4-update-icon-cache ; do
15 if [ -n "$(which $gtkuic_cmd)" ]; then
16 $gtkuic_cmd -fqt $icondir
17 fi
18 done
Patrick Williamsc124f4f2015-09-15 14:41:29 -050019 fi
20done
21