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

if [ -x /usr/bin/update-mime-database ]; then
  /usr/bin/update-mime-database usr/share/mime >/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 usr/share/icons/hicolor >/dev/null 2>&1
  fi
fi
( cd usr/share/icons/hicolor/32x32/mimetypes ; rm -rf text-x-gettext-translation.png )
( cd usr/share/icons/hicolor/32x32/mimetypes ; ln -sf poedit-translation-generic.png text-x-gettext-translation.png )
( cd usr/share/icons/hicolor/32x32/mimetypes ; rm -rf gnome-mime-text-x-gettext-translation.png )
( cd usr/share/icons/hicolor/32x32/mimetypes ; ln -sf poedit-translation-generic.png gnome-mime-text-x-gettext-translation.png )
( cd usr/share/icons/hicolor/22x22/mimetypes ; rm -rf text-x-gettext-translation.png )
( cd usr/share/icons/hicolor/22x22/mimetypes ; ln -sf poedit-translation-generic.png text-x-gettext-translation.png )
( cd usr/share/icons/hicolor/22x22/mimetypes ; rm -rf gnome-mime-text-x-gettext-translation.png )
( cd usr/share/icons/hicolor/22x22/mimetypes ; ln -sf poedit-translation-generic.png gnome-mime-text-x-gettext-translation.png )
( cd usr/share/icons/hicolor/scalable/mimetypes ; rm -rf text-x-gettext-translation.svg )
( cd usr/share/icons/hicolor/scalable/mimetypes ; ln -sf poedit-translation-generic.svg text-x-gettext-translation.svg )
( cd usr/share/icons/hicolor/scalable/mimetypes ; rm -rf gnome-mime-text-x-gettext-translation.svg )
( cd usr/share/icons/hicolor/scalable/mimetypes ; ln -sf poedit-translation-generic.svg gnome-mime-text-x-gettext-translation.svg )
( cd usr/share/icons/hicolor/24x24/mimetypes ; rm -rf text-x-gettext-translation.png )
( cd usr/share/icons/hicolor/24x24/mimetypes ; ln -sf poedit-translation-generic.png text-x-gettext-translation.png )
( cd usr/share/icons/hicolor/24x24/mimetypes ; rm -rf gnome-mime-text-x-gettext-translation.png )
( cd usr/share/icons/hicolor/24x24/mimetypes ; ln -sf poedit-translation-generic.png gnome-mime-text-x-gettext-translation.png )
( cd usr/share/icons/hicolor/16x16/mimetypes ; rm -rf text-x-gettext-translation.png )
( cd usr/share/icons/hicolor/16x16/mimetypes ; ln -sf poedit-translation-generic.png text-x-gettext-translation.png )
( cd usr/share/icons/hicolor/16x16/mimetypes ; rm -rf gnome-mime-text-x-gettext-translation.png )
( cd usr/share/icons/hicolor/16x16/mimetypes ; ln -sf poedit-translation-generic.png gnome-mime-text-x-gettext-translation.png )
