aboutsummaryrefslogtreecommitdiff
path: root/system/pommed/doinst.sh
diff options
context:
space:
mode:
authorAlan Hicks <alan@lizella.net>2010-05-13 00:41:25 +0200
committerRobby Workman <rworkman@slackbuilds.org>2010-05-13 00:41:25 +0200
commit07d0fb52720afaf343b9e0824527e3d970af13e3 (patch)
tree3548a423a4e6958872df66ed6a8bc127b2412966 /system/pommed/doinst.sh
parent43a0944f0e0d7b377cb3c31ff173f0fed91f1c7b (diff)
system/pommed: Updated for version 1.26
Diffstat (limited to 'system/pommed/doinst.sh')
-rw-r--r--system/pommed/doinst.sh14
1 files changed, 11 insertions, 3 deletions
diff --git a/system/pommed/doinst.sh b/system/pommed/doinst.sh
index ee1cdba8d911f..027fa22129f1a 100644
--- a/system/pommed/doinst.sh
+++ b/system/pommed/doinst.sh
@@ -1,5 +1,3 @@
-#!/bin/sh
-
config() {
NEW="$1"
OLD="$(dirname $NEW)/$(basename $NEW .new)"
@@ -20,6 +18,16 @@ if [ -e etc/rc.d/rc.pommed ]; then
fi
config etc/rc.d/rc.pommed.new
-config etc/pommed.conf.new
config etc/dbus-1/system.d/pommed.conf.new
+config etc/pommed.conf.new
+
+if [ -x /usr/bin/update-desktop-database ]; then
+ /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1
+fi
+
+if [ -e usr/share/icons/hicolor/icon-theme.cache ]; then
+ if [ -x /usr/bin/gtk-update-icon-cache ]; then
+ /usr/bin/gtk-update-icon-cache usr/share/icons/hicolor >/dev/null 2>&1
+ fi
+fi