summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorZoltán Böszörményi <zboszor@gmail.com>2023-12-06 10:20:50 +0100
committerSteve Sakoman <steve@sakoman.com>2023-12-15 03:54:00 -1000
commit88430ae8b76c88fb35cdf72cad91670577ac18f9 (patch)
tree889e2f59a405aebf783128bfde094b7769b1467e /scripts
parent4a256d442c7f20d093b41d2105261a81cdeddb65 (diff)
downloadpoky-88430ae8b76c88fb35cdf72cad91670577ac18f9.tar.gz
update_gtk_icon_cache: Fix for GTK4-only builds
Try to execute both gtk-update-icon-cache and gtk4-update-icon-cache after checking whether the commands are available. This attempts to match what gtk-icon-cache.bbclass is doing. This fixes running update_gtk_icon_cache during do_rootfs for an image that contains only GTK4 related packages. (From OE-Core rev: 9de44606319c1bcf5a0a80399073e391954dfdbe) Signed-off-by: Zoltán Böszörményi <zboszor@gmail.com> Signed-off-by: Steve Sakoman <steve@sakoman.com>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/postinst-intercepts/update_gtk_icon_cache6
1 files changed, 5 insertions, 1 deletions
diff --git a/scripts/postinst-intercepts/update_gtk_icon_cache b/scripts/postinst-intercepts/update_gtk_icon_cache
index 99367a2855..a92bd840c6 100644
--- a/scripts/postinst-intercepts/update_gtk_icon_cache
+++ b/scripts/postinst-intercepts/update_gtk_icon_cache
@@ -11,7 +11,11 @@ $STAGING_DIR_NATIVE/${libdir_native}/gdk-pixbuf-2.0/gdk-pixbuf-query-loaders --u
11 11
12for icondir in $D/usr/share/icons/*/ ; do 12for icondir in $D/usr/share/icons/*/ ; do
13 if [ -d $icondir ] ; then 13 if [ -d $icondir ] ; then
14 gtk-update-icon-cache -fqt $icondir 14 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
15 fi 19 fi
16done 20done
17 21