1
2if (which update-desktop-database); then
3  update-desktop-database -q /usr/share/applications
4fi
5
6if (which update-mime-database); then
7  update-mime-database /usr/share/mime
8fi
9