summaryrefslogtreecommitdiff
path: root/desktop/razorqt/doinst.sh
diff options
context:
space:
mode:
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 3e5691a052..d6ccfe6f8d 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