tdf#130857 qt weld: Implement QtInstanceWidget::get_text_height
[LibreOffice.git] / sysui / desktop / debian / postrm
blob2e53e60623522a53925c99ae1a785510cdc1f753
1 #!/bin/sh
2 # run always - both when upgrading as well as when erasing the package.
3 # Make sure this works when converted to .deb using alien.
4 if [ "$1" != "purge" ]; then
5 if [ -x /usr/bin/update-mime-database ]; then
6 update-mime-database /usr/share/mime
7 fi
8 if [ -x /usr/bin/update-desktop-database ]; then
9 update-desktop-database -q /usr/share/applications
11 if [ -x /usr/bin/update-menus ]; then
12 update-menus
14 if [ -e /usr/share/icons/hicolor/icon-theme.cache ] ; then
15 # touch it, just in case we cannot find the binary...
16 touch /usr/share/icons/hicolor
17 if command -v gtk-update-icon-cache; then
18 gtk-update-icon-cache /usr/share/icons/hicolor
20 # ignore errors (e.g. when there is a cache, but no index.theme)
21 true
24 exit 0