post_install() {
  echo -n "Updating desktop and mime database..."
  update-desktop-database -q
  echo "done."
}

post_upgrade() {
  post_install $1
}

post_remove() {
  post_install $1
}