1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
available() { which "$1" >/dev/null 2>&1 } post_install() { update-mime-database /usr/share/mime >/dev/null update-desktop-database -q /usr/share/applications if available gtk-update-icon-cache; then gtk-update-icon-cache -q /usr/share/icons/hicolor fi } post_upgrade() { post_install } post_remove() { post_install }