|
Lines 3-9
Link Here
|
| 3 |
# A script to perform R14.0.0 XDG compliance updates. |
3 |
# A script to perform R14.0.0 XDG compliance updates. |
| 4 |
|
4 |
|
| 5 |
SCRIPT_NAME="`basename \`readlink -f $0\``" |
5 |
SCRIPT_NAME="`basename \`readlink -f $0\``" |
| 6 |
SCRIPT_VERSION=201411240 |
6 |
SCRIPT_VERSION=201412080 |
| 7 |
|
7 |
|
| 8 |
# This script should be needed to run only once, but corner cases |
8 |
# This script should be needed to run only once, but corner cases |
| 9 |
# and file/directory permissions could cause incomplete updates. |
9 |
# and file/directory permissions could cause incomplete updates. |
|
Lines 317-322
if [ "$R14_VERSION" -lt "201309150" ]; then
Link Here
|
| 317 |
fi |
317 |
fi |
| 318 |
fi |
318 |
fi |
| 319 |
|
319 |
|
|
|
320 |
if [ "$R14_VERSION" -lt "201412080" ]; then |
| 321 |
Log "Updating references of /tmp/kde* to /tmp/tde." |
| 322 |
# Exclude user data files --- we don't want to touch those files. |
| 323 |
find "$PROFILE_DIR" \ |
| 324 |
-path $PROFILE_DIR/share/apps/amarok/albumcovers -prune -o \ |
| 325 |
-path $PROFILE_DIR/share/apps/basket/baskets -prune -o \ |
| 326 |
-path $PROFILE_DIR/share/apps/juk/covers -prune -o \ |
| 327 |
-path $PROFILE_DIR/share/apps/kget/logs -prune -o \ |
| 328 |
-path $PROFILE_DIR/share/apps/kmail/autosave -prune -o \ |
| 329 |
-path $PROFILE_DIR/share/apps/kmail/dimap -prune -o \ |
| 330 |
-path $PROFILE_DIR/share/apps/kmail/imap -prune -o \ |
| 331 |
-path $PROFILE_DIR/share/apps/kmail/mail -prune -o \ |
| 332 |
-path $PROFILE_DIR/share/apps/kmail/search -prune -o \ |
| 333 |
-path $PROFILE_DIR/share/apps/knotes -prune -o \ |
| 334 |
-path $PROFILE_DIR/share/apps/kopete/logs -prune -o \ |
| 335 |
-type f -print0 2>/dev/null | \ |
| 336 |
xargs -r0 grep -ZIEl "(/tmp/(kde|ksocket)|/var/tmp/kdecache)-" | \ |
| 337 |
xargs -r0 sed -ri -e "s|/tmp/kde-|/tmp/tde-|g" \ |
| 338 |
-e "s|/tmp/ksocket-|/tmp/tdesocket-|g" \ |
| 339 |
-e "s|/var/tmp/kdecache-|/var/tmp/tdecache-|g" |
| 340 |
fi |
| 320 |
if [ "$R14_VERSION" -lt "201309150" ]; then |
341 |
if [ "$R14_VERSION" -lt "201309150" ]; then |
| 321 |
Log "Updating references of $TDEDIR/share/applications/kde to share/applications/tde." |
342 |
Log "Updating references of $TDEDIR/share/applications/kde to share/applications/tde." |
| 322 |
# Exclude KMail mail files --- we don't want to touch those files. |
343 |
# Exclude KMail mail files --- we don't want to touch those files. |