summaryrefslogtreecommitdiffstats
path: root/r14-xdg-update
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2018-11-01 23:43:47 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2018-11-02 00:20:29 +0900
commit753410778bb37e179b6594d624ea7bdf82481352 (patch)
tree1835fb909c7170273849312f549114e161f127bd /r14-xdg-update
parentc2c81633882a749bfe15f0d195cd074ecc4d2e0a (diff)
downloadtdebase-753410778bb37e179b6594d624ea7bdf82481352.tar.gz
tdebase-753410778bb37e179b6594d624ea7bdf82481352.zip
Conversion startkde -> starttde, exitkde -> exittde in r14-xdg-upd file and related usage in code. This resolves bug 2282 and 2283.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> (cherry picked from commit b854e365affbc01f61f6a3f58347847437883953)
Diffstat (limited to 'r14-xdg-update')
-rw-r--r--r14-xdg-update17
1 files changed, 16 insertions, 1 deletions
diff --git a/r14-xdg-update b/r14-xdg-update
index 8db0693a6..762062d80 100644
--- a/r14-xdg-update
+++ b/r14-xdg-update
@@ -3,7 +3,7 @@
# A script to perform R14.0.0 XDG compliance updates.
SCRIPT_NAME="`basename \`readlink -f $0\``"
-SCRIPT_VERSION=201805260
+SCRIPT_VERSION=201811010
# This script should be needed to run only once, but corner cases
# and file/directory permissions could cause incomplete updates.
@@ -976,6 +976,21 @@ if [ "$R14_VERSION" -lt "201805260" ]; then
fi
fi
+# Rename startkde/exitkde events if possible
+if [ "$R14_VERSION" -lt "201811010" ]; then
+ if [ -f $PROFILE_DIR/share/config/knotify.eventsrc ]; then
+ if [ "`grep \"\[startkde\]\" $PROFILE_DIR/share/config/knotify.eventsrc`" ] && \
+ [ -z "`grep \"\[starttde\]\" $PROFILE_DIR/share/config/knotify.eventsrc`" ]; then
+ Log " Rename startkde -> starttde"
+ sed -i "s|\[startkde\]|\[starttde\]|" $PROFILE_DIR/share/config/knotify.eventsrc
+ fi
+ if [ "`grep \"\[exitkde\]\" $PROFILE_DIR/share/config/knotify.eventsrc`" ] && \
+ [ -z "`grep \"\[exittde\]\" $PROFILE_DIR/share/config/knotify.eventsrc`" ]; then
+ Log " Rename exitkde -> exittde"
+ sed -i "s|\[exitkde\]|\[exittde\]|" $PROFILE_DIR/share/config/knotify.eventsrc
+ fi
+ fi
+fi
# Perform some nominal update validations.
# First clean house from any previous failures.