if [ -x /usr/bin/update-desktop-database ]; then
  /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1
fi

if [ -e usr/share/icons/hicolor/icon-theme.cache ]; then
  if [ -x /usr/bin/gtk-update-icon-cache ]; then
    /usr/bin/gtk-update-icon-cache -f usr/share/icons/hicolor >/dev/null 2>&1
  fi
fi

if [ -e usr/share/glib-2.0/schemas ]; then
  if [ -x /usr/bin/glib-compile-schemas ]; then
    /usr/bin/glib-compile-schemas usr/share/glib-2.0/schemas >/dev/null 2>&1
  fi
fi
( cd usr/share/pixmaps/faces ; rm -rf astronaut.jpg )
( cd usr/share/pixmaps/faces ; ln -sf legacy/astronaut.jpg astronaut.jpg )
( cd usr/share/pixmaps/faces ; rm -rf baseball.png )
( cd usr/share/pixmaps/faces ; ln -sf legacy/baseball.png baseball.png )
( cd usr/share/pixmaps/faces ; rm -rf butterfly.png )
( cd usr/share/pixmaps/faces ; ln -sf legacy/butterfly.png butterfly.png )
( cd usr/share/pixmaps/faces ; rm -rf cat-eye.jpg )
( cd usr/share/pixmaps/faces ; ln -sf legacy/cat-eye.jpg cat-eye.jpg )
( cd usr/share/pixmaps/faces ; rm -rf chess.jpg )
( cd usr/share/pixmaps/faces ; ln -sf legacy/chess.jpg chess.jpg )
( cd usr/share/pixmaps/faces ; rm -rf coffee.jpg )
( cd usr/share/pixmaps/faces ; ln -sf legacy/coffee.jpg coffee.jpg )
( cd usr/share/pixmaps/faces ; rm -rf dice.jpg )
( cd usr/share/pixmaps/faces ; ln -sf legacy/dice.jpg dice.jpg )
( cd usr/share/pixmaps/faces ; rm -rf energy-arc.jpg )
( cd usr/share/pixmaps/faces ; ln -sf legacy/energy-arc.jpg energy-arc.jpg )
( cd usr/share/pixmaps/faces ; rm -rf fish.jpg )
( cd usr/share/pixmaps/faces ; ln -sf legacy/fish.jpg fish.jpg )
( cd usr/share/pixmaps/faces ; rm -rf flake.jpg )
( cd usr/share/pixmaps/faces ; ln -sf legacy/flake.jpg flake.jpg )
( cd usr/share/pixmaps/faces ; rm -rf flower.jpg )
( cd usr/share/pixmaps/faces ; ln -sf legacy/flower.jpg flower.jpg )
( cd usr/share/pixmaps/faces ; rm -rf grapes.jpg )
( cd usr/share/pixmaps/faces ; ln -sf legacy/grapes.jpg grapes.jpg )
( cd usr/share/pixmaps/faces ; rm -rf guitar.jpg )
( cd usr/share/pixmaps/faces ; ln -sf legacy/guitar.jpg guitar.jpg )
( cd usr/share/pixmaps/faces ; rm -rf launch.jpg )
( cd usr/share/pixmaps/faces ; ln -sf legacy/launch.jpg launch.jpg )
( cd usr/share/pixmaps/faces ; rm -rf leaf.jpg )
( cd usr/share/pixmaps/faces ; ln -sf legacy/leaf.jpg leaf.jpg )
( cd usr/share/pixmaps/faces ; rm -rf lightning.jpg )
( cd usr/share/pixmaps/faces ; ln -sf legacy/lightning.jpg lightning.jpg )
( cd usr/share/pixmaps/faces ; rm -rf penguin.jpg )
( cd usr/share/pixmaps/faces ; ln -sf legacy/penguin.jpg penguin.jpg )
( cd usr/share/pixmaps/faces ; rm -rf puppy.jpg )
( cd usr/share/pixmaps/faces ; ln -sf legacy/puppy.jpg puppy.jpg )
( cd usr/share/pixmaps/faces ; rm -rf sky.jpg )
( cd usr/share/pixmaps/faces ; ln -sf legacy/sky.jpg sky.jpg )
( cd usr/share/pixmaps/faces ; rm -rf soccerball.png )
( cd usr/share/pixmaps/faces ; ln -sf legacy/soccerball.png soccerball.png )
( cd usr/share/pixmaps/faces ; rm -rf sunflower.jpg )
( cd usr/share/pixmaps/faces ; ln -sf legacy/sunflower.jpg sunflower.jpg )
( cd usr/share/pixmaps/faces ; rm -rf sunset.jpg )
( cd usr/share/pixmaps/faces ; ln -sf legacy/sunset.jpg sunset.jpg )
( cd usr/share/pixmaps/faces ; rm -rf tennis-ball.png )
( cd usr/share/pixmaps/faces ; ln -sf legacy/tennis-ball.png tennis-ball.png )
( cd usr/share/pixmaps/faces ; rm -rf yellow-rose.jpg )
( cd usr/share/pixmaps/faces ; ln -sf legacy/yellow-rose.jpg yellow-rose.jpg )
