1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
# arg 1: the new package version post_install() { update-desktop-database -q /usr/share/applications update-mime-database /usr/share/mime 1> /dev/null } post_upgrade() { post_install $1 } # arg 1: the old package version post_remove() { update-desktop-database -q update-mime-database /usr/share/mime 1> /dev/null }