|
@@ -3,7 +3,7 @@
|
3
|
3
|
# A script to perform R14.0.0 XDG compliance updates.
|
4
|
4
|
|
5
|
5
|
SCRIPT_NAME="`basename \`readlink -f $0\``"
|
6
|
|
-SCRIPT_VERSION=201805260
|
|
6
|
+SCRIPT_VERSION=201811010
|
7
|
7
|
|
8
|
8
|
# This script should be needed to run only once, but corner cases
|
9
|
9
|
# and file/directory permissions could cause incomplete updates.
|
|
@@ -976,6 +976,21 @@ if [ "$R14_VERSION" -lt "201805260" ]; then
|
976
|
976
|
fi
|
977
|
977
|
fi
|
978
|
978
|
|
|
979
|
+# Rename startkde/exitkde events if possible
|
|
980
|
+if [ "$R14_VERSION" -lt "201811010" ]; then
|
|
981
|
+ if [ -f $PROFILE_DIR/share/config/knotify.eventsrc ]; then
|
|
982
|
+ if [ "`grep \"\[startkde\]\" $PROFILE_DIR/share/config/knotify.eventsrc`" ] && \
|
|
983
|
+ [ -z "`grep \"\[starttde\]\" $PROFILE_DIR/share/config/knotify.eventsrc`" ]; then
|
|
984
|
+ Log " Rename startkde -> starttde"
|
|
985
|
+ sed -i "s|\[startkde\]|\[starttde\]|" $PROFILE_DIR/share/config/knotify.eventsrc
|
|
986
|
+ fi
|
|
987
|
+ if [ "`grep \"\[exitkde\]\" $PROFILE_DIR/share/config/knotify.eventsrc`" ] && \
|
|
988
|
+ [ -z "`grep \"\[exittde\]\" $PROFILE_DIR/share/config/knotify.eventsrc`" ]; then
|
|
989
|
+ Log " Rename exitkde -> exittde"
|
|
990
|
+ sed -i "s|\[exitkde\]|\[exittde\]|" $PROFILE_DIR/share/config/knotify.eventsrc
|
|
991
|
+ fi
|
|
992
|
+ fi
|
|
993
|
+fi
|
979
|
994
|
|
980
|
995
|
# Perform some nominal update validations.
|
981
|
996
|
# First clean house from any previous failures.
|