TDE base libraries and programs
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

470 lines
20 KiB

  1. #!/bin/sh
  2. #
  3. # Overall, this script works quite nicely, but please help to
  4. # make this script more robust!
  5. # Testers: need help to ensure this script remains POSIX compliant.
  6. # Some distros do not use bash as a default shell.
  7. #===============================================================
  8. # This is a modest attempt to migrate a KDE3 profile to Trinity.
  9. # If $HOME/.trinity exists then skip this one-time migration.
  10. # Can this script be run from within starttde?
  11. # Challenge: to run this script from within starttde requires
  12. # graphical dialog boxes. When is the underlying TDE system
  13. # sufficiently operational in the starttde script to use KDialog?
  14. # If KDialog is unavailable then that leaves xmessage, which is
  15. # ugly although possibly adequate.
  16. # If KDialog is unavailable until after $HOME/.trinity exists, such
  17. # as after running KPersonalizer, then this script will not help.
  18. # Also, KPersonalizer automatically creates a skeleton profile directory
  19. # when launched, as does some command line tools such as tdeconf_update.
  20. #
  21. # Additionally, this script was written mainly from a command line
  22. # login perspective. This script and concept needs testing and
  23. # improvements to support graphical login systems.
  24. #===============================================================
  25. # Known Quirks:
  26. # When testing the same user account between two different systems, such
  27. # as a real and virtual machine or two different physical machines,
  28. # after a migration KMix is always muted because the sound devices differ.
  29. # Not sure, but forced window sizes saved in kwinrulesc seem to break after
  30. # a migration.
  31. #===============================================================
  32. Wait_For_Response () {
  33. unset response
  34. while true; do
  35. printf "%s" "$1 (y/n): " > /dev/tty
  36. IFS= read -r ANSWER < /dev/tty || exit 1;
  37. case $ANSWER in
  38. y* | Y* ) response=y; break;;
  39. n* | N* ) response=n; break;;
  40. * ) echo "Please answer yes (y/Y) or no (n/N)." > /dev/tty;;
  41. esac
  42. done
  43. unset ANSWER
  44. }
  45. Proceed_From_Response () {
  46. if [ "$response" = "n" ]; then
  47. echo "Exiting."
  48. echo
  49. exit 0
  50. else
  51. unset response
  52. echo "Continuing."
  53. echo
  54. fi
  55. }
  56. # Need help here to make the disk space test more robust!
  57. disk_space_test () {
  58. echo
  59. echo "Testing available disk space."
  60. # Find the remaining space on the partition.
  61. AVAILABLE="`df $HOME/$KDE3_PROFILE | grep '\/' | awk '{print $4}'`"
  62. # Find the size of the profile directory.
  63. PROFILE_SIZE="`du -s $HOME/$KDE3_PROFILE | awk '{print $1}'`"
  64. # Determine remaining partition space after migrating.
  65. REMAINING_SPACE=$(($AVAILABLE - $PROFILE_SIZE))
  66. # Convert to human friendly numbers (MBs).
  67. PROFILE_SIZE=$(( ${PROFILE_SIZE} / 1024 ))
  68. REMAINING_SPACE=$(( $REMAINING_SPACE / 1024 ))
  69. # Let the user know the results.
  70. echo "Remaining disk space: ${REMAINING_SPACE} MB"
  71. echo "Space required for new profile: ${PROFILE_SIZE} MB"
  72. # If obvious insufficient space then inform and quit.
  73. if [ $PROFILE_SIZE -gt $REMAINING_SPACE ]; then
  74. echo "Insufficient disk space. Exiting."
  75. echo
  76. exit 0
  77. else
  78. echo "Sufficient disk space exists. Continuing."
  79. echo
  80. fi
  81. # Ask whether to proceed.
  82. # Wait_For_Response "Migrate?"
  83. # Proceed_From_Response
  84. # User wants to migrate.
  85. echo "Migrating an existing KDE3 profile directory:" 1>&2
  86. echo "Copying \$HOME/$KDE3_PROFILE to \$HOME/.trinity." 1>&2
  87. cp -a $HOME/$KDE3_PROFILE $HOME/.trinity
  88. }
  89. # Require a backup of the profile.
  90. if [ "$1" = "backup" ]; then
  91. BACKUP="true"
  92. fi
  93. # Avoid any possible conflict with KDE4. Therefore within this script
  94. # use full path names to all binaries used.
  95. # The binaries for TDE are located in the same place as this script.
  96. # To determine that location use the following method rather than presuming
  97. # the existence of $TDEDIR. That environment variable might not be
  98. # defined or defined to point to KDE4 binaries.
  99. BIN_DIR="$(dirname -- "$0")"
  100. if [ -x ${BIN_DIR}/tde-config ]; then
  101. TDE_VERSION="$( ${BIN_DIR}/tde-config --version | sed -n 's|^TDE: ||p' )"
  102. TDEDIR="${BIN_DIR%/bin}"
  103. echo "Trinity Desktop Environment version is $TDE_VERSION" 1>&2
  104. echo "Trinity Desktop Environment base directory is $TDEDIR" 1>&2
  105. else
  106. echo "Unable to determine the TDE bin directory, where this script should be installed."
  107. echo "This script should be installed in the same directory."
  108. echo "Exiting."
  109. exit 1
  110. fi
  111. unset BIN_DIR TDE_VERSION
  112. export TDEDIR
  113. # Trap when the user runs this script while in a Trinity session.
  114. # Most files can be updated "live" but some can't, such as kdeglobals.
  115. if [ "$TDE_FULL_SESSION" != "" ] && [ "$TDE_SESSION_UID" != "" ] && [ "`ps ax | grep \`tail -n1 $HOME/.DCOPserver_\`uname -n\`__0 2>/dev/null\` | grep -v grep`" != "" ]; then
  116. MESSAGE="You are running this script while a Trinity session is active.\nMost files can be updated \"live\" but some cannot, such as kdeglobals.\n\nThis script probably will not complete successfully. :-)"
  117. # Are we in X? Display an X dialog explaining breakage.
  118. printf "%b" "$MESSAGE\n"
  119. Wait_For_Response "Continue?"
  120. Proceed_From_Response
  121. fi
  122. echo
  123. echo "This script migrates an existing KDE3 profile directory."
  124. echo "The definition of a KDE3 profile directory includes some"
  125. echo "older Trinity profile directories."
  126. echo
  127. echo "The KDE3 profile directory will be copied/duplicated"
  128. echo "and then cleaned/scrubbed to remove remnants of KDE3."
  129. echo "KMail config files will be scrubbed but not the mail files."
  130. echo "Likewise with other data files, such as for Amarok, Basket,"
  131. echo "Juk, KGet, KNotes, and Kopete."
  132. echo "The result is a new Trinity profile directory. :-)"
  133. echo
  134. # We need to make this first test more robust. Some TDE tools create
  135. # a skeleton profile directory ($TDEHOME/share/config) with no files.
  136. # Thus, the mere existence of $HOME/.trinity will cause this script
  137. # to terminate despite an existing profile directory possibly being
  138. # nothing more than a skeleton. Possibly like the KDE4 profile directory
  139. # test below, we can test for several knowable TDE files that also don't
  140. # exist in KDE4. If those files don't exist then presume a skeleton
  141. # profile directory.
  142. # Do not migrate when $TDEHOME is a sym link to another profile directory.
  143. # Trinity should have full reign within its own profile directory
  144. # (limited to administrative locking), but an error check is a
  145. # conservative approach.
  146. TDEHOME_LINK="`readlink \"$HOME/.trinity\"`"
  147. if [ "$TDEHOME_LINK" != "" ]; then
  148. echo "Warning! The profile directory $HOME/.trinity is a" 1>&2
  149. echo "sym link to $TDEHOME_LINK!" 1>&2
  150. echo "Please break this sym link to perform the profile migration." 1>&2
  151. echo
  152. Wait_For_Response "Break the sym link now and continue with migrating?"
  153. Proceed_From_Response
  154. unlink "$HOME/.trinity" 2>/dev/null
  155. if [ "`readlink \"$HOME/.trinity\"`" != "" ]; then
  156. echo "Unable to break the sym link. Check your file and directory privileges. Quitting."
  157. unset KDE3_PROFILE
  158. unset TDEHOME_LINK
  159. exit 0
  160. fi
  161. fi
  162. if [ -d "$HOME/.trinity" ] && [ "$BACKUP" = "true" ]; then
  163. echo "$HOME/.trinity already exists." 1>&2
  164. echo "User requested a backup copy."
  165. if [ -d $HOME/.trinity.old ]; then
  166. echo "Creating backup copy $HOME/.trinity.old2..." 1>&2
  167. cp -a $HOME/.trinity $HOME/.trinity.old2
  168. else
  169. echo "Creating backup copy $HOME/.trinity.old..." 1>&2
  170. cp -a $HOME/.trinity $HOME/.trinity.old
  171. fi
  172. echo
  173. KDE3_PROFILE=".trinity"
  174. elif [ -d "$HOME/.trinity" ]; then
  175. echo "$HOME/.trinity already exists." 1>&2
  176. echo "No migration required, but running to update an older Trinity profile." 1>&2
  177. echo
  178. KDE3_PROFILE=".trinity"
  179. else
  180. echo "$HOME/.trinity does not exist." 1>&2
  181. # If $HOME/.kde3 or $HOME/.kdemod3 exists, probably safe to presume a profile from KDE3 or a previous Trinity.
  182. if [ -d "$HOME/.kde3" ]; then
  183. echo "Found $HOME/.kde3."
  184. KDE3_PROFILE=".kde3"
  185. disk_space_test
  186. elif [ -d "$HOME/.kdemod3" ]; then
  187. echo "Found $HOME/.kdemod3."
  188. KDE3_PROFILE=".kdemod3"
  189. disk_space_test
  190. elif [ -d "$HOME/.kde" ]; then
  191. # This is tricky --- ensure this profile directory is NOT KDE4.
  192. echo "Found $HOME/.kde."
  193. if [ ! -d $HOME/.kde/share/kde4 ] && \
  194. [ ! -f $HOME/.kde/share/config/nepomukserverrc ] && \
  195. [ ! -f $HOME/.kde/share/config/phonondevicesrc ] && \
  196. [ ! -f $HOME/.kde/share/config/plasma-desktop-appletsrc ] && \
  197. [ ! -f $HOME/.kde/share/config/specialmailcollectionsrc ]; then
  198. # That was five different tests. Probably not a KDE4 profile. There is a chance
  199. # the user's KDE3 profile got contaminated testing KDE4. If that is the case then
  200. # too bad --- the safe route here is not to migrate. Otherwise if this 5-point
  201. # test passes then migrate the profile.
  202. KDE3_PROFILE=".kde"
  203. echo "$HOME/$KDE3_PROFILE does not look like a KDE4 profile directory."
  204. disk_space_test
  205. else
  206. echo "$HOME/.kde probably is a KDE4 profile directory."
  207. fi
  208. else
  209. echo "Found no KDE3 profile directory to migrate." 1>&2
  210. fi
  211. fi
  212. if [ -n "$KDE3_PROFILE" ] && [ -d "$KDE3_PROFILE" ]; then
  213. # Remove KDE3 remnants.
  214. echo "Cleaning temp file locations." 1>&2
  215. # All three directories are for temporary files. The cache directory is
  216. # intended for persistent temporary data (is expected to remain across reboots
  217. # and shutdowns). The other two directories are for non-persistent data and
  218. # can be deleted across reboots and shutdowns.
  219. CACHE_DIR="`readlink $HOME/.trinity/cache-\`uname -n\``"
  220. SOCKET_DIR="`readlink $HOME/.trinity/socket-\`uname -n\``"
  221. TMP_DIR="`readlink $HOME/.trinity/tmp-\`uname -n\``"
  222. # Delete the non-persistent temporary directories. This is safe at any time.
  223. unlink $HOME/.trinity/socket-`uname -n` 2>/dev/null
  224. unlink $HOME/.trinity/tmp-`uname -n` 2>/dev/null
  225. if [ "$SOCKET_DIR" != "" ]; then
  226. rm -fr $SOCKET_DIR 2>/dev/null
  227. fi
  228. if [ "$TMP_DIR" != "" ]; then
  229. rm -fr $TMP_DIR 2>/dev/null
  230. fi
  231. # Remove the obsolete ksycoca and tdesycoca files from the cache directory.
  232. # The KDE3 and Trinity cache directories will be linked to the same location,
  233. # but deleting the ksycoca/tdesycoca files is non-destructive.
  234. rm -f $HOME/.trinity/cache-`uname -n`/ksycoca* 2>/dev/null
  235. rm -f $HOME/.trinity/cache-`uname -n`/tdesycoca* 2>/dev/null
  236. # Fix config files.
  237. # Exclude KMail mail files --- we don't want to touch those files.
  238. # I'm using maildir --- do these commands work for mbox too?
  239. echo "Cleaning config files (but not files with user data, e.g. KMail mail files. :-))" 1>&2
  240. echo "Cleaning, first pass..." 1>&2
  241. KDE3_PROFILE_R=$(echo $KDE3_PROFILE | sed "s|\.|\\\\.|g")
  242. find $HOME/.trinity \
  243. -path $HOME/.trinity/share/apps/amarok/albumcovers -prune -o \
  244. -path $HOME/.trinity/share/apps/basket/baskets -prune -o \
  245. -path $HOME/.trinity/share/apps/juk/covers -prune -o \
  246. -path $HOME/.trinity/share/apps/kget/logs -prune -o \
  247. -path $HOME/.trinity/share/apps/kmail/autosave -prune -o \
  248. -path $HOME/.trinity/share/apps/kmail/dimap -prune -o \
  249. -path $HOME/.trinity/share/apps/kmail/imap -prune -o \
  250. -path $HOME/.trinity/share/apps/kmail/mail -prune -o \
  251. -path $HOME/.trinity/share/apps/kmail/search -prune -o \
  252. -path $HOME/.trinity/share/apps/knotes -prune -o \
  253. -path $HOME/.trinity/share/apps/kopete/logs -prune -o \
  254. -type f -print0 | \
  255. xargs -r0 grep -ZIFl "/${KDE3_PROFILE}" | \
  256. xargs -r0 sed -i "s|/${KDE3_PROFILE_R}|/\.trinity|g"
  257. EXIT_CODE="$?"
  258. if [ "$EXIT_CODE" = "0" ]; then
  259. echo "Done." 1>&2
  260. else
  261. echo "There was an error with the first pass." 1>&2
  262. fi
  263. # What if $TDEDIR is not defined? Bummer.
  264. if [ -z "$TDEDIR" ]; then
  265. echo "The \$TDEDIR environment variable does not exist. Cannot complete the second pass." 1>&2
  266. else
  267. echo "Cleaning, second pass..." 1>&2
  268. find $HOME/.trinity \
  269. -path $HOME/.trinity/share/apps/amarok/albumcovers -prune -o \
  270. -path $HOME/.trinity/share/apps/basket/baskets -prune -o \
  271. -path $HOME/.trinity/share/apps/juk/covers -prune -o \
  272. -path $HOME/.trinity/share/apps/kget/logs -prune -o \
  273. -path $HOME/.trinity/share/apps/kmail/autosave -prune -o \
  274. -path $HOME/.trinity/share/apps/kmail/dimap -prune -o \
  275. -path $HOME/.trinity/share/apps/kmail/imap -prune -o \
  276. -path $HOME/.trinity/share/apps/kmail/mail -prune -o \
  277. -path $HOME/.trinity/share/apps/kmail/search -prune -o \
  278. -path $HOME/.trinity/share/apps/knotes -prune -o \
  279. -path $HOME/.trinity/share/apps/kopete/logs -prune -o \
  280. -type f -print0 | \
  281. xargs -r0 grep -ZIFl "/opt/kde/" | \
  282. xargs -r0 sed -i "s|/opt/kde/|${TDEDIR}/|g"
  283. EXIT_CODE_1="$?"
  284. find $HOME/.trinity \
  285. -path $HOME/.trinity/share/apps/amarok/albumcovers -prune -o \
  286. -path $HOME/.trinity/share/apps/basket/baskets -prune -o \
  287. -path $HOME/.trinity/share/apps/juk/covers -prune -o \
  288. -path $HOME/.trinity/share/apps/kget/logs -prune -o \
  289. -path $HOME/.trinity/share/apps/kmail/autosave -prune -o \
  290. -path $HOME/.trinity/share/apps/kmail/dimap -prune -o \
  291. -path $HOME/.trinity/share/apps/kmail/imap -prune -o \
  292. -path $HOME/.trinity/share/apps/kmail/mail -prune -o \
  293. -path $HOME/.trinity/share/apps/kmail/search -prune -o \
  294. -path $HOME/.trinity/share/apps/knotes -prune -o \
  295. -path $HOME/.trinity/share/apps/kopete/logs -prune -o \
  296. -type f -print0 | \
  297. xargs -r0 grep -ZIFl "/opt/kde3/" | \
  298. xargs -r0 sed -i "s|/opt/kde3/|${TDEDIR}/|g"
  299. EXIT_CODE_2="$?"
  300. if [ "$EXIT_CODE_1" = "0" ] && [ "$EXIT_CODE_2" = "0" ]; then
  301. echo "Done." 1>&2
  302. else
  303. echo "There was an error with the second pass." 1>&2
  304. fi
  305. echo "Cleaning, third pass..." 1>&2
  306. # Prevent an anomaly with the kicker Firefox icon. Firefox likely is installed to /usr.
  307. # The following update will change that to /opt/trinity. We need to restore that location.
  308. KICKER_FIREFOX="$HOME/$KDE3_PROFILE/share/apps/kicker/mozilla-firefox.desktop"
  309. if [ -e "$KICKER_FIREFOX" ]; then
  310. FIREFOX_PNG_LOCATION="`grep \"Icon=\" \"$KICKER_FIREFOX\"`"
  311. fi
  312. find $HOME/.trinity \
  313. -path $HOME/.trinity/share/apps/amarok/albumcovers -prune -o \
  314. -path $HOME/.trinity/share/apps/basket/baskets -prune -o \
  315. -path $HOME/.trinity/share/apps/juk/covers -prune -o \
  316. -path $HOME/.trinity/share/apps/kget/logs -prune -o \
  317. -path $HOME/.trinity/share/apps/kmail/autosave -prune -o \
  318. -path $HOME/.trinity/share/apps/kmail/dimap -prune -o \
  319. -path $HOME/.trinity/share/apps/kmail/imap -prune -o \
  320. -path $HOME/.trinity/share/apps/kmail/mail -prune -o \
  321. -path $HOME/.trinity/share/apps/kmail/search -prune -o \
  322. -path $HOME/.trinity/share/apps/knotes -prune -o \
  323. -path $HOME/.trinity/share/apps/kopete/logs -prune -o \
  324. -type f -print0 | \
  325. xargs -r0 grep -ZIFl "/usr/share/" | \
  326. xargs -r0 sed -i "s|/usr/share/|${TDEDIR}/share/|g"
  327. if [ "$?" = "0" ]; then
  328. if [ "$FIREFOX_PNG_LOCATION" != "" ]; then
  329. FIREFOX_PNG_LOCATION_NEW="`grep \"Icon=\" \"$HOME/.trinity/share/apps/kicker/mozilla-firefox.desktop\"`"
  330. FIREFOX_PNG_LOCATION_NEW_R=$(echo $FIREFOX_PNG_LOCATION_NEW | sed "s|\.|\\\\.|g")
  331. sed -i "s|$FIREFOX_PNG_LOCATION_NEW_R|$FIREFOX_PNG_LOCATION|" $HOME/.trinity/share/apps/kicker/mozilla-firefox.desktop
  332. fi
  333. echo "Done." 1>&2
  334. else
  335. echo "There was an error with the third pass." 1>&2
  336. fi
  337. fi
  338. # Need to update files in $HOME/.trinity/Autostart.
  339. # Some files might be *.desktop files and can be cleaned in place.
  340. # Some files might be sym links to a previous KDE3 location.
  341. # Recreate those links to the correct Trinity location.
  342. # This needs improvement for apps not in /usr/bin.
  343. echo "Attempting to update *.desktop files in Autostart." 1>&2
  344. find $HOME/.trinity/Autostart -! -type l -type f -print0 | \
  345. xargs -r0 grep -ZIFl "/usr/bin/" | \
  346. xargs -r0 sed -i "s|/usr/bin/|${TDEDIR}/bin/|g"
  347. echo "Attempting to update sym links in Autostart." 1>&2
  348. ( cd $HOME/.trinity/Autostart
  349. for i in `find . -type l`; do
  350. LINK="`readlink $i`"
  351. echo "Found a sym link to $LINK." 1>&2
  352. LINK_PATH="`dirname $LINK`"
  353. LINK_NAME="`basename $LINK`"
  354. if [ -n "`echo $LINK_PATH | grep \"/usr\"`" ]; then
  355. echo "Sym link points to /usr." 1>&2
  356. NEW_LINK_PATH="`echo $LINK_PATH | sed \"s|/usr|${TDEDIR}|\"`"
  357. elif [ -n "`echo $LINK_PATH | grep \"/opt/kde\"`" ]; then
  358. echo "Sym link points to /opt/kde." 1>&2
  359. NEW_LINK_PATH="`echo $LINK_PATH | sed \"s|/opt/kde|${TDEDIR}|\"`"
  360. elif [ -n "`echo $LINK_PATH | grep \"/opt/kde3\"`" ]; then
  361. echo "Sym link points to /opt/kde3." 1>&2
  362. NEW_LINK_PATH="`echo $LINK_PATH | sed \"s|/opt/kde3|${TDEDIR}|\"`"
  363. elif [ -n "`echo $LINK_PATH | grep \"${TDEDIR}\"`" ]; then
  364. echo "Sym link points to ${TDEDIR}." 1>&2
  365. else
  366. echo "Cannot establish a path for a new link." 1>&2
  367. fi
  368. if [ "$NEW_LINK_PATH" != "" ] && [ "$LINK_NAME" != "" ]; then
  369. unlink $i
  370. echo "Attempting to create a sym link to $NEW_LINK_PATH/$LINK_NAME." 1>&2
  371. ln -sf $NEW_LINK_PATH/$LINK_NAME $LINK_NAME
  372. if [ "$?" = "0" ]; then
  373. echo "Link created." 1>&2
  374. else
  375. echo "There was an error with creating the link." 1>&2
  376. fi
  377. else
  378. echo "Not updating the link."
  379. fi
  380. done
  381. if [ -f kmix.desktop ]; then
  382. $TDEDIR/bin/kwriteconfig --file kmixrc --key Autostart --type bool "true"
  383. fi
  384. rm -f kmix.desktop
  385. )
  386. # Ensure all KDED services are accounted for in the user's profile. Any that are missing
  387. # are defaulted to not auto-loading (false). Refer to bug report 1210. This same test is
  388. # performed in the r14-xdg-update script, but notice the r14-xdg-update script uses the
  389. # key of X-TDE-Kded-autoload whereas X-KDE-Kded-autoload is used here.
  390. if [ -d $HOME/.trinity/share/services/kded ]; then
  391. if [ "`find $HOME/.trinity/share/services/kded -name *.desktop`" != "" ]; then
  392. echo "Validating KDED services."
  393. for i in `/bin/ls -1 $HOME/.trinity/share/services/kded/*.desktop`; do
  394. SERVICE_NAME=`basename $i`
  395. if [ ! -f $TDEDIR/share/services/kded/$SERVICE_NAME ]; then
  396. $TDEDIR/bin/kwriteconfig --file $i --group "Desktop Entry" --key "X-KDE-Kded-autoload" --type bool "false"
  397. fi
  398. done
  399. fi
  400. fi
  401. # Preserve kicker/panel icons.
  402. if [ -r $HOME/.trinity/share/config/kickerrc ]; then
  403. echo "Updating kicker/panel customizations in kickerrc."
  404. if [ -r "$HOME/.trinity/share/config/kickerrc" ]; then
  405. sed -i "s|/usr/share/|${TDEDIR}/share/|g" "$HOME/.trinity/share/config/kickerrc" 2>/dev/null
  406. else
  407. echo "kickerrc does not exist."
  408. fi
  409. fi
  410. echo "Renaming some configuration files and directories."
  411. # Note: The only rebranding that occurred before starting the R14 branch was krita. All other
  412. # rebranding updates belong in the r14-xdg-update script.
  413. if [ ! -f $HOME/.trinity/share/config/chalkrc ] && [ -f $HOME/.trinity/share/config/kritarc -o -d $HOME/.trinity/share/apps/krita ]; then
  414. echo " krita->chalk"
  415. mv $HOME/.trinity/share/config/kritarc $HOME/.trinity/share/config/chalkrc 2>/dev/null
  416. mv $HOME/.trinity/share/apps/krita $HOME/.trinity/share/apps/chalk 2>/dev/null
  417. fi
  418. # Note: Don't run tdeconf_update, which is run automatically when starting TDE.
  419. # Note: Don't run any profile R14 updates: starttde does that through the r14-xdg-update script.
  420. echo
  421. echo "Done!" 1>&2
  422. echo
  423. echo "If any button icons to non Trinity apps in the kicker/panel"
  424. echo "or system tray are incorrect, select the correct icon from the"
  425. echo "button's configure menu option. The button's path to the app should"
  426. echo "remain correct. (Note: please report any such anomalies.)"
  427. fi
  428. echo
  429. unset KDE3_PROFILE
  430. unset KDE3_PROFILE_R
  431. unset TDEHOME_LINK
  432. unset KICKER_FIREFOX
  433. unset FIREFOX_PNG_LOCATION
  434. unset FIREFOX_PNG_LOCATION_NEW
  435. unset FIREFOX_PNG_LOCATION_NEW_R
  436. unset SERVICE_NAME
  437. unset NEW_LINK_PATH
  438. unset LINK_NAME
  439. unset AVAILABLE
  440. unset PROFILE_SIZE
  441. unset REMAINING_SPACE
  442. unset TDEHOME_LINK
  443. unset CACHE_DIR
  444. unset SOCKET_DIR
  445. unset TMP_DIR
  446. unset EXIT_CODE