summaryrefslogtreecommitdiffstats
path: root/sysui/desktop/debian/postrm
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-27 16:51:28 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-27 16:51:28 +0000
commit940b4d1848e8c70ab7642901a68594e8016caffc (patch)
treeeb72f344ee6c3d9b80a7ecc079ea79e9fba8676d /sysui/desktop/debian/postrm
parentInitial commit. (diff)
downloadlibreoffice-upstream/1%7.0.4.tar.xz
libreoffice-upstream/1%7.0.4.zip
Adding upstream version 1:7.0.4.upstream/1%7.0.4upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rwxr-xr-xsysui/desktop/debian/postrm26
1 files changed, 26 insertions, 0 deletions
diff --git a/sysui/desktop/debian/postrm b/sysui/desktop/debian/postrm
new file mode 100755
index 000000000..adb9cf448
--- /dev/null
+++ b/sysui/desktop/debian/postrm
@@ -0,0 +1,26 @@
+#!/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
+ for theme in gnome hicolor locolor; do
+ if [ -e /usr/share/icons/$theme/icon-theme.cache ] ; then
+ # touch it, just in case we cannot find the binary...
+ touch /usr/share/icons/$theme
+ if (which gtk-update-icon-cache); then
+ gtk-update-icon-cache /usr/share/icons/$theme
+ fi
+ # ignore errors (e.g. when there is a cache, but no index.theme)
+ true
+ fi
+ done
+fi
+exit 0