summaryrefslogtreecommitdiffstats
path: root/r14-xdg-update
diff options
context:
space:
mode:
authorMichele Calgaro <[email protected]>2018-11-01 23:43:47 +0900
committerMichele Calgaro <[email protected]>2018-11-01 23:43:47 +0900
commitb854e365affbc01f61f6a3f58347847437883953 (patch)
tree367d736d7cdf1cdcad2958fb6757568559813328 /r14-xdg-update
parent47fc32f003a7a89b5cdc4f96dedf6fa1b2b239ef (diff)
downloadtdebase-b854e365affbc01f61f6a3f58347847437883953.tar.gz
tdebase-b854e365affbc01f61f6a3f58347847437883953.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 <[email protected]>
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.