summaryrefslogtreecommitdiffstats
path: root/scripts/postinst-intercepts/update_gtk_icon_cache
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/postinst-intercepts/update_gtk_icon_cache')
-rw-r--r--scripts/postinst-intercepts/update_gtk_icon_cache17
1 files changed, 17 insertions, 0 deletions
diff --git a/scripts/postinst-intercepts/update_gtk_icon_cache b/scripts/postinst-intercepts/update_gtk_icon_cache
new file mode 100644
index 0000000000..99367a2855
--- /dev/null
+++ b/scripts/postinst-intercepts/update_gtk_icon_cache
@@ -0,0 +1,17 @@
1#!/bin/sh
2#
3# SPDX-License-Identifier: MIT
4#
5# Post-install intercept for gtk-icon-cache.bbclass
6
7set -e
8
9# Update native pixbuf loaders
10$STAGING_DIR_NATIVE/${libdir_native}/gdk-pixbuf-2.0/gdk-pixbuf-query-loaders --update-cache
11
12for icondir in $D/usr/share/icons/*/ ; do
13 if [ -d $icondir ] ; then
14 gtk-update-icon-cache -fqt $icondir
15 fi
16done
17