aboutsummaryrefslogtreecommitdiffstats
path: root/packages/all-poky-linux/adwaita-icon-theme/adwaita-icon-theme/latest.pkg_postinst
blob: a9d3d5752e3f67796a49e5e14d96b9ce4ded737e (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 adwaita-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