summaryrefslogtreecommitdiffstats
path: root/scripts/postinst-intercepts/update_icon_cache
blob: 212209a9dafdf4da0cc2c6ee0170b3ef0246f21c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh
#
# SPDX-License-Identifier: MIT
#

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