# Try to run these.  If they fail, no biggie.
chroot . /usr/bin/update-desktop-database -q usr/share/applications 1> /dev/null 2> /dev/null
chroot . /usr/bin/glib-compile-schemas /usr/share/glib-2.0/schemas/ 1> /dev/null 2> /dev/null
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
( cd usr/share/help/ca/easytag/media ; rm -rf icon.png )
( cd usr/share/help/ca/easytag/media ; ln -sf /usr/share/help/C/easytag/media/icon.png icon.png )
( cd usr/share/help/cs/easytag/media ; rm -rf icon.png )
( cd usr/share/help/cs/easytag/media ; ln -sf /usr/share/help/C/easytag/media/icon.png icon.png )
( cd usr/share/help/de/easytag/media ; rm -rf icon.png )
( cd usr/share/help/de/easytag/media ; ln -sf /usr/share/help/C/easytag/media/icon.png icon.png )
( cd usr/share/help/el/easytag/media ; rm -rf icon.png )
( cd usr/share/help/el/easytag/media ; ln -sf /usr/share/help/C/easytag/media/icon.png icon.png )
( cd usr/share/help/es/easytag/media ; rm -rf icon.png )
( cd usr/share/help/es/easytag/media ; ln -sf /usr/share/help/C/easytag/media/icon.png icon.png )
( cd usr/share/help/fr/easytag/media ; rm -rf icon.png )
( cd usr/share/help/fr/easytag/media ; ln -sf /usr/share/help/C/easytag/media/icon.png icon.png )
( cd usr/share/help/hu/easytag/media ; rm -rf icon.png )
( cd usr/share/help/hu/easytag/media ; ln -sf /usr/share/help/C/easytag/media/icon.png icon.png )
( cd usr/share/help/sv/easytag/media ; rm -rf icon.png )
( cd usr/share/help/sv/easytag/media ; ln -sf /usr/share/help/C/easytag/media/icon.png icon.png )
