Files
loongoffice/sysui/desktop/debian/postrm
Chris Mayo 5c5650ab06 tdf#132787: Don't duplicate hicolor icon theme as gnome
GNOME will use the hicolor theme.

Change-Id: I612c6b076544227bf9adf546ad385c6a5ac20ca1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/105200
Tested-by: Jenkins
Reviewed-by: Chris Mayo <aklhfex@gmail.com>
Reviewed-by: Heiko Tietze <heiko.tietze@documentfoundation.org>
2020-11-10 12:46:36 +01:00

25 lines
787 B
Bash
Executable File

#!/bin/sh
# run always - both when upgrading as well as when erasing the package.
# Make sure this works when converted to .deb using alien.
if [ "$1" != "purge" ]; then
if [ -x /usr/bin/update-mime-database ]; then
update-mime-database /usr/share/mime
fi
if [ -x /usr/bin/update-desktop-database ]; then
update-desktop-database -q /usr/share/applications
fi
if [ -x /usr/bin/update-menus ]; then
update-menus
fi
if [ -e /usr/share/icons/hicolor/icon-theme.cache ] ; then
# touch it, just in case we cannot find the binary...
touch /usr/share/icons/hicolor
if (which gtk-update-icon-cache); then
gtk-update-icon-cache /usr/share/icons/hicolor
fi
# ignore errors (e.g. when there is a cache, but no index.theme)
true
fi
fi
exit 0