aboutsummaryrefslogtreecommitdiffstats
path: root/packages/all-poky-linux/sato-icon-theme/sato-icon-theme/latest.pkg_postinst
blob: 8bf5055c4f2f0152a3a88f5c939a1e16b6f0cc45 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh
set -e
if [ "x$D" != "x" ]; then
	$INTERCEPT_DIR/postinst_intercept update_gtk_icon_cache sato-icon-theme \
		mlprefix= \
		libdir_native=/usr/lib
else

	# Update the pixbuf loaders in case they haven't been registered yet
	/usr/lib/gdk-pixbuf-2.0/gdk-pixbuf-query-loaders --update-cache

	for icondir in /usr/share/icons/* ; do
		if [ -d $icondir ] ; then
			gtk-update-icon-cache-3.0 -fqt  $icondir
		fi
	done
fi