postinst is in gnome-icon-theme-full 3.4.0-0ubuntu1.
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 32 | #! /bin/sh
set -e
write_cache()
{
if [ -x /usr/bin/gtk-update-icon-cache-3.0 ]; then
if ! gtk-update-icon-cache-3.0 --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
ubuntu-logo 60
debian-swirl 30
gnome-foot 20
EOF
write_cache
|