summaryrefslogtreecommitdiff
path: root/multimedia/smplayer/doinst.sh
diff options
context:
space:
mode:
authorErik Hanson <erik@slackbuilds.org>2010-05-12 17:42:48 +0200
committerRobby Workman <rworkman@slackbuilds.org>2010-05-12 17:42:48 +0200
commitcf69cf343254cd97bf1c32def036399e60c16a64 (patch)
tree067ea9ff1c52767e0b6978bf9c5774cb08698920 /multimedia/smplayer/doinst.sh
parente085666eecf31235f86020afad879db02788bbe0 (diff)
downloadslackbuilds-cf69cf343254cd97bf1c32def036399e60c16a64.tar.gz
multimedia/smplayer: Updated for version 0.6.7
Diffstat (limited to 'multimedia/smplayer/doinst.sh')
-rw-r--r--multimedia/smplayer/doinst.sh10
1 files changed, 7 insertions, 3 deletions
diff --git a/multimedia/smplayer/doinst.sh b/multimedia/smplayer/doinst.sh
index a05c78f507..ff30c0e35b 100644
--- a/multimedia/smplayer/doinst.sh
+++ b/multimedia/smplayer/doinst.sh
@@ -1,5 +1,3 @@
-#!/bin/sh
-
config() {
NEW="$1"
OLD="$(dirname $NEW)/$(basename $NEW .new)"
@@ -16,6 +14,12 @@ config() {
config etc/smplayer/input.conf.new
if [ -x /usr/bin/update-desktop-database ]; then
- ./usr/bin/update-desktop-database -q usr/share/applications
+ /usr/bin/update-desktop-database -q usr/share/applications &> /dev/null
+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