@ -113,7 +113,6 @@ if [ -x $BIN_DIR/tde-config ]; then
echo "Trinity Desktop Environment version is $TDE_VERSION" 1>&2
echo "Trinity Desktop Environment version is $TDE_VERSION" 1>&2
export TDEDIR=${BIN_DIR%/bin}
export TDEDIR=${BIN_DIR%/bin}
echo "Trinity Desktop Environment base directory is $TDEDIR" 1>&2
echo "Trinity Desktop Environment base directory is $TDEDIR" 1>&2
TDE_REBRAND=1
else
else
# This might be a Trinity version before kde-config was renamed to tde-config.
# This might be a Trinity version before kde-config was renamed to tde-config.
# Don't use kde-config because of a bug that always creates a $TDEHOME directory.
# Don't use kde-config because of a bug that always creates a $TDEHOME directory.
@ -173,6 +172,16 @@ if [ "$TDEHOME_LINK" != "" ]; then
fi
fi
fi
fi
# Trap when the user runs this script while in a Trinity session.
# Most files can be updated "live" but some can't, such as kdeglobals.
if [ "$TDE_FULL_SESSION" != "" ] || [ "$TDE_SESSION_UID" != "" ] || [ -f $HOME/.DCOPserver_`uname -n`__* ]; then
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 might complete successfully and might not. Probably not. :-)"
# Are we in X? Display an X dialog explaining breakage.
printf "%b" "$MESSAGE\n"
Wait_For_Response "Continue?"
Proceed_From_Response
fi
if [ -d "$HOME/.trinity" ] && [ "$BACKUP" = "true" ]; then
if [ -d "$HOME/.trinity" ] && [ "$BACKUP" = "true" ]; then
echo "$HOME/.trinity already exists." 1>&2
echo "$HOME/.trinity already exists." 1>&2
echo "User requested a backup copy."
echo "User requested a backup copy."
@ -225,23 +234,29 @@ else
fi
fi
if [ -n "$KDE3_PROFILE" ] && [ -d "$KDE3_PROFILE" ]; then
if [ -n "$KDE3_PROFILE" ] && [ -d "$KDE3_PROFILE" ]; then
# Remove any KDE3 "contamination."
# Remove KDE3 remnants.
echo "Cleaning temp file locations." 1>&2
echo "Cleaning temp file locations." 1>&2
# All three directories are for temporary files. The cache directory is
# intended for persistent temporary data (is expected to remain across reboots
# and shutdowns). The other two directories are for non-persistent data and