summaryrefslogtreecommitdiffstats
path: root/sysui/desktop/debian/postrm
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 09:06:44 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 09:06:44 +0000
commited5640d8b587fbcfed7dd7967f3de04b37a76f26 (patch)
tree7a5f7c6c9d02226d7471cb3cc8fbbf631b415303 /sysui/desktop/debian/postrm
parentInitial commit. (diff)
downloadlibreoffice-ed5640d8b587fbcfed7dd7967f3de04b37a76f26.tar.xz
libreoffice-ed5640d8b587fbcfed7dd7967f3de04b37a76f26.zip
Adding upstream version 4:7.4.7.upstream/4%7.4.7upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'sysui/desktop/debian/postrm')
-rwxr-xr-xsysui/desktop/debian/postrm24
1 files changed, 24 insertions, 0 deletions
diff --git a/sysui/desktop/debian/postrm b/sysui/desktop/debian/postrm
new file mode 100755
index 000000000..0e6099ea5
--- /dev/null
+++ b/sysui/desktop/debian/postrm
@@ -0,0 +1,24 @@
+#!/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