summaryrefslogtreecommitdiffstats
path: root/desktop/lxlauncher/doinst.sh
diff options
context:
space:
mode:
author Matteo Bernardini <ponce@slackbuilds.org>2014-09-05 11:15:59 +0200
committer Willy Sudiarto Raharjo <willysr@slackbuilds.org>2014-09-05 23:21:10 +0700
commitfe3c3f50da554af145245322e73fc44849720d28 (patch)
tree076c6b552b958dc450a6f1d3e0cf551cfc9b4c0a /desktop/lxlauncher/doinst.sh
parent4b20e518b6a4dc99b2efd44136bc7bb9118b73ad (diff)
downloadslackbuilds-fe3c3f50da554af145245322e73fc44849720d28.tar.gz
slackbuilds-fe3c3f50da554af145245322e73fc44849720d28.tar.xz
desktop/lxlauncher: Updated for version 0.2.3.
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Diffstat (limited to 'desktop/lxlauncher/doinst.sh')
-rw-r--r--desktop/lxlauncher/doinst.sh16
1 files changed, 16 insertions, 0 deletions
diff --git a/desktop/lxlauncher/doinst.sh b/desktop/lxlauncher/doinst.sh
new file mode 100644
index 0000000000..9296dfbd9f
--- /dev/null
+++ b/desktop/lxlauncher/doinst.sh
@@ -0,0 +1,16 @@
+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/xdg/lxlauncher/gtkrc.new
+config etc/xdg/lxlauncher/settings.conf.new
+config etc/xdg/menus/lxlauncher-applications.menu.new