summaryrefslogtreecommitdiff
path: root/office/kile/doinst.sh
diff options
context:
space:
mode:
Diffstat (limited to 'office/kile/doinst.sh')
-rw-r--r--office/kile/doinst.sh14
1 files changed, 11 insertions, 3 deletions
diff --git a/office/kile/doinst.sh b/office/kile/doinst.sh
index 55d469fb0d..92421f23d2 100644
--- a/office/kile/doinst.sh
+++ b/office/kile/doinst.sh
@@ -1,4 +1,12 @@
-if [ -x usr/bin/update-desktop-database ]; then
- usr/bin/update-desktop-database -q usr/share/applications
+# Update the desktop menu database
+if [ -x /usr/bin/update-desktop-database ]; then
+ /usr/bin/update-desktop-database -q usr/share/applications
fi
- \ No newline at end of file
+
+# Update icon cache if one exists
+if [ -r usr/share/icons/hicolor/icon-theme.cache ]; then
+ if [ -x /usr/bin/gtk-update-icon-cache ]; then
+ /usr/bin/gtk-update-icon-cache -t -f usr/share/icons/hicolor >/dev/null 2>&1
+ fi
+fi
+