1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
_update() { echo -e "\e[34;1m==>\e[39;1m Updating desktop MIME database...\e[0m" update-desktop-database -q echo -e "\e[34;1m==>\e[39;1m Updating icon cache...\e[0m" xdg-icon-resource forceupdate --theme hicolor &>/dev/null } post_install() { _update } post_upgrade() { _update } post_remove() { _update }