• Skip to content
  • Skip to link menu
kdesvn-build - KDE Build Tool
  • kdesvn-build Homepage / Configuring the shell to use the new KDE
 
 

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

Inform

Skip menu "Inform"
  • Home
  • KDE Home

Latest Releases

Skip menu "Latest Releases"
  • kdesvn-build 1.10

Download

Skip menu "Download"
  • KDE Subversion snapshots
  • Syntax highlighting for KWrite

Resources

Skip menu "Resources"
  • KDE TechBase
  • kdesvn-build Wiki
  • Documentation
  • Configuring the shell to use the new KDE
  • KDE Commit Digest
  • Step by Step Guide to Building KDE

Global navigation links

  • KDE Home
  • KDE Accessibility Home
  • Description of Access Keys
  • Back to content
  • Back to menu

Search:


Maintained by Michael Pyne
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal