You may need to know the following system locations:
KDE installs into its own folder tree, which you can find by
running the command kde4-config
. This folder is referred to
by the environment variables $--prefix
KDEDIRS
and possibly
$KDEDIR
.
The environment variable $KDEHOME
points to the folder where KDE should find user-specific settings. If it is not
set, the default value of ~/.kde
is used.