Bug 70208 - Env variables (like LD_LIBRARY_PATH) are not used before the global path.
Summary: Env variables (like LD_LIBRARY_PATH) are not used before the global path.
Status: CLOSED WORKSFORME
Alias: None
Product: kdelibs
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: Stephan Kulow
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-12-12 11:41 UTC by Thomas Zander
Modified: 2003-12-12 12:27 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Zander 2003-12-12 11:41:09 UTC
Version:            (using KDE Devel)
Installed from:    Compiled sources

I have KDE 3.1.4 installed in /usr/bin and /usr/lib (via debian packages) so this in in my global path.

When I run the startKde from /usr/local/kde and have KDEDIR/QTDIR/LD_LIBRARY path set to use /usr/local I still get some applications from my global path.

I have the feeling that all applications that are started from klauncher are old.

Symptoms;
removing all kde stuff from /usr/bin still gives me old software (konqueror/kicker etc).
starting apps from a konsole gives me HEAD versions.
The splash screen always is the correct (HEAD) version.
removing all kde stuff from /usr/lib 'fixes' the problem and I have an all new KDE.

The env vars are set in the /etc/profile here is a copy:

#!/bin/sh
export KDEHOME=$HOME/.kde3
export KDEDIR=/usr/local/kde
export QTDIR=$KDEDIR/qtcopy
export PATH=$KDEDIR/bin:$QTDIR/bin:$PATH
export MANPATH=$MANPATH:$QTDIR/doc/man/man3
export LD_LIBRARY_PATH=$KDEDIR/lib:$QTDIR/lib/
Comment 1 Stephan Kulow 2003-12-12 12:01:25 UTC
LD_LIBRARY_PATH is useless for your case. Either it's in $KDEDIRS or it's not. The rest is done using runtime paths in the library. I'd go looking for /etc/kde*rc and some stracing.

BTW: you didn't say it, but I assume $KDEDIRS is empty?
Comment 2 Thomas Zander 2003-12-12 12:13:47 UTC
There indeed is an /etc/kderc wich has paths to the old stuff.
dir_exe=/usr/bin
dir_lib=/usr/lib
 being the most notable.

I'm confused, why is this file there in the first place? How does this work together with KDEDIR/KDEDIRS etc.

Or in other words; how do I get 2 KDEs on my machine working ?
Comment 3 Stephan Kulow 2003-12-12 12:23:36 UTC
Well, rm -rf / + get another distri? :)

Or simply remove that /etc/kderc file
Comment 4 Thomas Zander 2003-12-12 12:27:38 UTC
> Well, rm -rf / + get another distri? :) 
Very funny...

 
> Or simply remove that /etc/kderc file
Right; so having the file means you _will_ only have one version on the machine. I'll file that as a bug to the debian packager then.