Version: 3.4 (using KDE KDE 3.5.6) Installed from: Ubuntu Packages OS: Linux When setting some environment variables in Project->Project Options->Run Options->Environment Variables and these variables contain other variables with a dollar in them (like $HOME/.kde4), the debugger does not correctly expand these dollar variables to their substitutes. In the debugger window, I get the following: >(gdb) set environment KDEHOME=$HOME/.kde4 >set environment KDEHOME=$HOME/.kde4 >^done Instead, it should automatically expand $HOME so this becomes: >(gdb) set environment KDEHOME=/home/kde-devel/.kde4 >set environment KDEHOME=/home/kde-devel/.kde4 >^done Note that this works fine for running programs with Build->Execute Program. It should work in both cases.
This is a wish. We just don't do that.
Does anobody know the right way to expand environment variables in a KDE program?
There's the KMacroExpander namespace with some expand functions, but they require <somechar>{} quoting of the to-be-expanded variables. However there's currently no support whatsoever for using env vars in the value of other env vars in our env var config.