postinst is in gnome-icon-theme 3.12.0-3.
This file is a maintainer script. It is executed when installing (*inst) or removing (*rm) the package.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 | #! /bin/sh
set -e
write_cache()
{
if which gtk-update-icon-cache >/dev/null 2>&1 ; then
if ! gtk-update-icon-cache --force --quiet /usr/share/icons/gnome; then
echo "WARNING: icon cache generation failed"
fi
fi
}
if [ "$1" = "triggered" ]; then
write_cache
exit 0
fi
SIZES=$(ls /usr/share/icons/gnome/*/places | sed -rn 's,^.*/([0-9]+)x[0-9]+/.*$,\1,p')
( while read name prio; do
command="update-alternatives --install /usr/share/icons/gnome/scalable/places/start-here.svg start-here.svg /usr/share/icons/gnome/scalable/places/$name.svg $prio"
for s in $SIZES; do
command="$command --slave /usr/share/icons/gnome/${s}x${s}/places/start-here.png start-here-${s}.png /usr/share/icons/gnome/${s}x${s}/places/$name.png"
done
$command
done ) << EOF
debian-swirl 30
gnome-foot 20
EOF
write_cache
|