aboutsummaryrefslogtreecommitdiff
path: root/multimedia/xfmedia/doinst.sh
diff options
context:
space:
mode:
Diffstat (limited to 'multimedia/xfmedia/doinst.sh')
-rw-r--r--multimedia/xfmedia/doinst.sh20
1 files changed, 18 insertions, 2 deletions
diff --git a/multimedia/xfmedia/doinst.sh b/multimedia/xfmedia/doinst.sh
index 6c07a9fbbc304..fb57cbf919dde 100644
--- a/multimedia/xfmedia/doinst.sh
+++ b/multimedia/xfmedia/doinst.sh
@@ -1,9 +1,25 @@
+config() {
+ NEW="$1"
+ OLD="$(dirname $NEW)/$(basename $NEW .new)"
+ # If there's no config file by that name, mv it over:
+ if [ ! -r $OLD ]; then
+ mv $NEW $OLD
+ elif [ "$(cat $OLD | md5sum)" = "$(cat $NEW | md5sum)" ]; then
+ # toss the redundant copy
+ rm $NEW
+ fi
+ # Otherwise, we leave the .new copy for the admin to consider...
+}
+
+config etc/xfce/xdg/xfmedia/keybindings.rc.new
if [ -x /usr/bin/update-desktop-database ]; then
/usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1
fi
-if [ -x /usr/bin/update-mime-database ]; then
- /usr/bin/update-mime-database ./usr/share/mime >/dev/null 2>&1
+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