diff options
Diffstat (limited to 'scripts/postinst-intercepts/update_gtk_icon_cache')
-rw-r--r-- | scripts/postinst-intercepts/update_gtk_icon_cache | 6 |
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 | ||
12 | for icondir in $D/usr/share/icons/*/ ; do | 12 | for 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 |
16 | done | 20 | done |
17 | 21 | ||