aboutsummaryrefslogtreecommitdiff
path: root/desktop/razorqt/doinst.sh
diff options
context:
space:
mode:
authorMatteo Bernardini <ponce@slackbuilds.org>2012-10-28 17:35:45 +0100
committerdsomero <xgizzmo@slackbuilds.org>2012-11-04 09:53:56 -0500
commitc6a03b745a857a36f3e1a19f6e8136d48be47176 (patch)
tree94fcc83c7df8a5e943eca747f103c54188369aba /desktop/razorqt/doinst.sh
parent0b099b6a187badb5553a7e9d0f991098d8c4deee (diff)
desktop/razorqt: Updated for version 0.5.1.
Added a small workaround to the startrazor launch script Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Diffstat (limited to 'desktop/razorqt/doinst.sh')
-rw-r--r--desktop/razorqt/doinst.sh17
1 files changed, 17 insertions, 0 deletions
diff --git a/desktop/razorqt/doinst.sh b/desktop/razorqt/doinst.sh
index 3e5691a052b5b..d6ccfe6f8dcca 100644
--- a/desktop/razorqt/doinst.sh
+++ b/desktop/razorqt/doinst.sh
@@ -1,3 +1,20 @@
+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...
+}
+
+for i in desktop razor session windowmanagers razor-panel/panel; do
+ config @RCONFDIR@/razor/$i.conf.new
+done
+
if [ -x /usr/bin/update-desktop-database ]; then
/usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1
fi