diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2018-11-01 23:43:47 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2018-11-01 23:43:47 +0900 |
commit | b854e365affbc01f61f6a3f58347847437883953 (patch) | |
tree | 367d736d7cdf1cdcad2958fb6757568559813328 /r14-xdg-update | |
parent | 47fc32f003a7a89b5cdc4f96dedf6fa1b2b239ef (diff) | |
download | tdebase-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 <michele.calgaro@yahoo.it>
Diffstat (limited to 'r14-xdg-update')
-rw-r--r-- | r14-xdg-update | 17 |
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. |