diff options
Diffstat (limited to 'system/pommed/doinst.sh')
-rw-r--r-- | system/pommed/doinst.sh | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/system/pommed/doinst.sh b/system/pommed/doinst.sh index ee1cdba8d911..027fa22129f1 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 |