summaryrefslogtreecommitdiff
path: root/office/libreoffice/doinst.sh
diff options
context:
space:
mode:
authorNiels Horn <niels.horn@gmail.com>2010-10-16 20:44:04 -0500
committerRobby Workman <rworkman@slackbuilds.org>2010-10-16 20:44:04 -0500
commit9afda46281cb5015c2a611f58c2b7fff95db7e83 (patch)
tree215b58bd3de9822d2fad5e597ed468cd50f649e3 /office/libreoffice/doinst.sh
parent7d5ae35d3b00c39ab1373854434b551d8e868e2c (diff)
downloadslackbuilds-9afda46281cb5015c2a611f58c2b7fff95db7e83.tar.gz
office/libreoffice: Added (Fork of OpenOffice.org)
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'office/libreoffice/doinst.sh')
-rw-r--r--office/libreoffice/doinst.sh16
1 files changed, 16 insertions, 0 deletions
diff --git a/office/libreoffice/doinst.sh b/office/libreoffice/doinst.sh
new file mode 100644
index 0000000000..88ab9f58ff
--- /dev/null
+++ b/office/libreoffice/doinst.sh
@@ -0,0 +1,16 @@
+if [ -x /usr/bin/update-desktop-database ]; then
+ /usr/bin/update-desktop-database -q usr/share/applications
+fi
+
+if [ -x /usr/bin/update-mime-database ]; then
+ /usr/bin/update-mime-database usr/share/mime >/dev/null 2>&1
+fi
+
+if [ -x /usr/bin/gtk-update-icon-cache ]; then
+ for theme in gnome locolor hicolor ; do
+ if [ -e usr/share/icons/$theme/icon-theme.cache ]; then
+ /usr/bin/gtk-update-icon-cache usr/share/icons/$theme >/dev/null 2>&1
+ fi
+ done
+fi
+