|
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=201410170 |
6 |
SCRIPT_VERSION=201411210 |
| 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 179-188
Link Here
|
| 179 |
echo " separate profile directory." 1>&2 |
179 |
echo " separate profile directory." 1>&2 |
| 180 |
echo " Without R14 updates some Trinity apps will fail to function correctly." 1>&2 |
180 |
echo " Without R14 updates some Trinity apps will fail to function correctly." 1>&2 |
| 181 |
fi |
181 |
fi |
| 182 |
MESSAGE="Oops! The profile directory $PROFILE_DIR is a sym link to $TDEHOME_LINK.\n\n${WARNING_MESSAGE}\nPossible remedies:\n\n* Contact your system administrator.\n\n* Break the sym link to force creating a fresh Trinity profile.\n\n* Use the migratekde3 script to migrate a KDE3 profile to Trinity." |
182 |
MESSAGE="Oops! The profile directory $PROFILE_DIR is a sym link to $TDEHOME_LINK.\n\n${WARNING_MESSAGE}\nPossible remedies:\n\n* Contact your system administrator.\n\n* Break the sym link to force creating a fresh Trinity profile.\n\n* Use the ${TDEDIR}/bin/migratekde3 script to migrate a KDE3 profile to Trinity." |
| 183 |
# Are we in X? Display an X dialog explaining breakage. |
183 |
# Are we in X? Display an X dialog explaining breakage. |
| 184 |
if [ "$USER_DIR" = "$HOME" ] && [ "$DISPLAY" != "" ]; then |
184 |
if [ "$USER_DIR" = "$HOME" ] && [ "$DISPLAY" != "" ]; then |
| 185 |
MESSAGE="${MESSAGE}\n\nSelecting the Continue button means retaining the KDE3 profile and\nbreaking the sym link. With the sym link broken, run the migratekde3\nscript before restarting Trinity to migrate a KDE3 profile or\nallow Trinity to create a fresh profile." |
185 |
MESSAGE="${MESSAGE}\n\nSelecting the Continue button means retaining the KDE3 profile and\nbreaking the sym link. With the sym link broken, run the ${TDEDIR}/bin/migratekde3\nscript before restarting Trinity to migrate a KDE3 profile or\nallow Trinity to create a fresh profile." |
| 186 |
printf "%b" "$MESSAGE" | xmessage -center -file - -buttons Continue,Quit > /dev/null 2>/dev/null |
186 |
printf "%b" "$MESSAGE" | xmessage -center -file - -buttons Continue,Quit > /dev/null 2>/dev/null |
| 187 |
EXIT_CODE="$?" |
187 |
EXIT_CODE="$?" |
| 188 |
unset TDEHOME_LINK |
188 |
unset TDEHOME_LINK |
|
Lines 207-213
Link Here
|
| 207 |
if [ "$BREAK_SYMLINK" = "true" ]; then |
207 |
if [ "$BREAK_SYMLINK" = "true" ]; then |
| 208 |
unlink "$USER_DIR/.trinity" 2>/dev/null |
208 |
unlink "$USER_DIR/.trinity" 2>/dev/null |
| 209 |
if [ "`readlink \"$USER_DIR/.trinity\"`" = "" ]; then |
209 |
if [ "`readlink \"$USER_DIR/.trinity\"`" = "" ]; then |
| 210 |
MESSAGE="Sym link broken. With the sym link broken, run the migratekde3\nscript before restarting Trinity to migrate a KDE3 profile or\nallow Trinity to create a fresh profile." |
210 |
MESSAGE="Sym link broken. With the sym link broken, run the ${TDEDIR}/bin/migratekde3\nscript before restarting Trinity to migrate a KDE3 profile or\nallow Trinity to create a fresh profile." |
| 211 |
Message_Prefix |
211 |
Message_Prefix |
| 212 |
printf "%b" "$MESSAGE" |
212 |
printf "%b" "$MESSAGE" |
| 213 |
echo |
213 |
echo |