summaryrefslogtreecommitdiffstats
path: root/r14-xdg-update
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2014-07-05 16:51:39 +0200
committerSlávek Banko <slavek.banko@axis.cz>2014-07-05 16:51:39 +0200
commit77165c2ec87cfc41b7cf0941b714a36d7b7ef882 (patch)
tree134a94a0c3cd89303b581a3a9294795f9ee438e9 /r14-xdg-update
parent4ac914fa84593ec3ef32812622abd0a05ce2ed3e (diff)
downloadtdebase-77165c2ec87cfc41b7cf0941b714a36d7b7ef882.tar.gz
tdebase-77165c2ec87cfc41b7cf0941b714a36d7b7ef882.zip
Update r14-xdg-update: add renaming kde- => tde- in Favorites and FirstSeenApps in kickerrc
Diffstat (limited to 'r14-xdg-update')
-rw-r--r--r14-xdg-update13
1 files changed, 6 insertions, 7 deletions
diff --git a/r14-xdg-update b/r14-xdg-update
index 7e00c2f12..ee7d6c93d 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=201403020
+SCRIPT_VERSION=201407050
# This script should be needed to run only once, but corner cases
# and file/directory permissions could cause incomplete updates.
@@ -379,14 +379,13 @@ if [ "$R14_VERSION" -lt "201309150" ]; then
fi
# Preserve kicker/panel icons.
-if [ "$R14_VERSION" -lt "201309150" ]; then
+if [ "$R14_VERSION" -lt "201407050" ]; then
if [ -r $PROFILE_DIR/share/config/kickerrc ]; then
Log "Updating kicker/panel customizations in kickerrc."
- if [ -r "$PROFILE_DIR/share/config/kickerrc" ]; then
- sed -i 's|StorageId\[\$e\]=kde-|StorageId\[\$e\]=tde-|g' "$PROFILE_DIR/share/config/kickerrc" 2>/dev/null
- else
- Log "kickerrc does not exist."
- fi
+ sed -i 's|StorageId\[\$e\]=kde-|StorageId\[\$e\]=tde-|g' "$PROFILE_DIR/share/config/kickerrc" 2>/dev/null
+ sed -i '/^\(Favorites\|FirstSeenApps\)/s|\([=,]\)kde-|\1tde-|gp' "$PROFILE_DIR/share/config/kickerrc" 2>/dev/null
+ else
+ Log "kickerrc does not exist."
fi
fi
if [ "$R14_VERSION" -lt "201309150" ]; then