diff options
author | Slávek Banko <slavek.banko@axis.cz> | 2018-05-27 01:52:35 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2018-05-27 01:56:02 +0900 |
commit | ebc4be41a0b70679004fd9098cdc523fe597ae0d (patch) | |
tree | 6248cd96bdc79869be669faedff8918480bfca05 | |
parent | 31914f43c6a9a7bb59ab72099e7d8d949417ef66 (diff) | |
download | tdebase-ebc4be41a0b70679004fd9098cdc523fe597ae0d.tar.gz tdebase-ebc4be41a0b70679004fd9098cdc523fe597ae0d.zip |
Fixed removal of older network panel files in case the user does not
follow the correct update+reboot+access procedure. This relates to bug
2903.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit 67290ac0ad24d8db32bd079c65746b5244215618)
-rw-r--r-- | r14-xdg-update | 26 |
1 files changed, 18 insertions, 8 deletions
diff --git a/r14-xdg-update b/r14-xdg-update index 94961a65e..f097e4c31 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=201805230 +SCRIPT_VERSION=201805260 # This script should be needed to run only once, but corner cases # and file/directory permissions could cause incomplete updates. @@ -949,16 +949,26 @@ fi # Rename/remove old link files in Konqueror sidebar network panel. # Updated links will be installed when the user open the panel from Konqueror -if [ "$R14_VERSION" -lt "201805230" ]; then +if [ "$R14_VERSION" -lt "201805260" ]; then if [ -f "$PROFILE_DIR/share/apps/konqsidebartng/virtual_folders/remote/ftp/kde_ftp.desktop" ]; then - Log " kde_ftp.desktop->tde_ftp.desktop" - mv "$PROFILE_DIR/share/apps/konqsidebartng/virtual_folders/remote/ftp/kde_ftp.desktop" \ - "$PROFILE_DIR/share/apps/konqsidebartng/virtual_folders/remote/ftp/tde_ftp.desktop" 2>/dev/null + if [ -f "$PROFILE_DIR/share/apps/konqsidebartng/virtual_folders/remote/ftp/tde_ftp.desktop" ]; then + Log " Remove kde_ftp.desktop" + rm "$PROFILE_DIR/share/apps/konqsidebartng/virtual_folders/remote/ftp/kde_ftp.desktop" + else + Log " kde_ftp.desktop->tde_ftp.desktop" + mv "$PROFILE_DIR/share/apps/konqsidebartng/virtual_folders/remote/ftp/kde_ftp.desktop" \ + "$PROFILE_DIR/share/apps/konqsidebartng/virtual_folders/remote/ftp/tde_ftp.desktop" 2>/dev/null + fi fi if [ -f "$PROFILE_DIR/share/apps/konqsidebartng/virtual_folders/remote/web/kde_web.desktop" ]; then - Log " kde_web.desktop->tde_web.desktop" - mv "$PROFILE_DIR/share/apps/konqsidebartng/virtual_folders/remote/web/kde_web.desktop" \ - "$PROFILE_DIR/share/apps/konqsidebartng/virtual_folders/remote/web/tde_web.desktop" 2>/dev/null + if [ -f "$PROFILE_DIR/share/apps/konqsidebartng/virtual_folders/remote/web/tde_web.desktop" ]; then + Log " Remove kde_web.desktop" + rm "$PROFILE_DIR/share/apps/konqsidebartng/virtual_folders/remote/web/kde_web.desktop" + else + Log " kde_web.desktop->tde_web.desktop" + mv "$PROFILE_DIR/share/apps/konqsidebartng/virtual_folders/remote/web/kde_web.desktop" \ + "$PROFILE_DIR/share/apps/konqsidebartng/virtual_folders/remote/web/tde_web.desktop" 2>/dev/null + fi fi if [ -f "$PROFILE_DIR/share/apps/konqsidebartng/virtual_folders/remote/web/look_web.desktop" ]; then Log " Remove look_web.desktop" |