aboutsummaryrefslogtreecommitdiffstats
path: root/packages/cortexa15t2hf-neon-poky-linux-gnueabi/gdk-pixbuf/gdk-pixbuf-loader-pnm/latest.pkg_postrm
blob: 0fb4ea80ce695443a964ede41ce900963350b4a1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh
set -e
if [ "x$D" != "x" ]; then
	$INTERCEPT_DIR/postinst_intercept update_pixbuf_cache libgdk-pixbuf-2.0-loader-pnm mlprefix= binprefix= libdir=/usr/lib \
		bindir=/usr/bin base_libdir=/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

	if [ -x /usr/bin/gtk-update-icon-cache ] && [ -d /usr/share/icons ]; then
		for icondir in /usr/share/icons/*; do
			if [ -d ${icondir} ]; then
				gtk-update-icon-cache -t -q ${icondir}
			fi
		done
	fi
fi