summaryrefslogtreecommitdiff
path: root/multimedia/smplayer/doinst.sh
diff options
context:
space:
mode:
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