Shell settings to use your new KDE
Starting your new KDE
To actually startup your new KDE installation after kdesvn-build has installed it, you will need to adjust some environment variables. (I will try to make this automatic in a future release of kdesvn-build).
For instance, I have a file called kde-env-vars, which is read in by every file used to startup KDE. This includes ~/.bashrc for when I'm using startx, and ~/.xsession for when I'm using kdm's "Custom Session" option.
#!/bin/sh
# Check if the variable KDE_ENV_SET is already set.
# If so, we've already been sourced, and there's no
# reason to set these variables again.
if [ -z "${KDE_ENV_SET}" ]; then
# Change this to your kdedir setting in ~/.kdesvn-buildrc
export KDEDIR="${HOME}/kde"
export KDEDIRS="${KDEDIR}"
# Change this to your qtdir setting in ~/.kdesvn-buildrc
export QTDIR="${HOME}/kdesvn/build/qt-copy"
export PATH="${KDEDIR}/bin:${QTDIR}/bin:${PATH}"
export LD_LIBRARY_PATH="${KDEDIR}/lib:${QTDIR}/lib"
export KDEHOME="${HOME}/.kde3.5"
# If KDEHOME doesn't exist, create it.
if [ ! -e ${KDEHOME} ]; then
mkdir ${KDEHOME}
fi
# Don't accidentally get sourced again.
export KDE_ENV_SET=1
fi
You may have to adjust it a bit for your distribution, but the idea is to save it to ~/kde-env-vars or similar for your kdesvn-build user, and then use the source command for your shell to read it in from your startup scripts.
e.g. have "source ~/kde-env-vars" in your ~/.bashrc for most Linux distributions
kdesvn-build - KDE Build Tool