On 12.01.07 00:40:21, Sune Vuorela wrote: > On Thursday 11 January 2007 22:58, Andreas Pakulat wrote: > > To clarify, I have set up LD_LIBRARY_PATH=/usr/lib/jni which is needed > > for some java programs to properly work in .bash_profile in $HOME. When > > starting KDE via startkde from a tty its still set inside KDE's konsole > > shell. However when logging in via kdm LD_LIBRARY_PATH is unset via some > > "part". This would be understandable if any of the programs involved is > > setuid, but at least kdm and startkde are not and I'm not aware of any > > other programs that are involved here. > > > > So the question is why is LD_LIBRARY_PATH unset? > > Actually.. the question is "How should LD_LIBRARY_PATH be set" ? > > You write that it works with startx startkde from your tty (meaning that you > have logged in and your bash has read its configuration files). > > KDM (or kde) does not read other random programs configuration files on login > (bash is included in 'other random programs'
Thats actually wrong. See /etc/kde3/kdm/Xsession, it does read
.bash_profile and thus it properly sets any other environment variables
I set in .bash_profile (I modify KDEDIRS for example to start kdevelop3
installed into $HOME among others).
> It is true for all vars (and not specific for LD_LIBRARY_PATH)
No its specific to LD_LIBRARY_PATH
> kde reads ~/kde/env/ and sources all files in there.
> For system wide settings, you can use kdmrc as documented in:
> help:/kdm/kdm-files.html#kdmrc
Apart from that being under-documented I use different Windowmanagers all
the time and it thus its really nice that kdm does read .bash_profile on
session startup
> I actually don't see a bug here.
Than you didn't look close enough ;)
Andreas
--
Be cheerful while you are alive.
-- Phathotep, 24th Century B.C.
pgpwqVEVufXnw.pgp
Description: PGP signature

