Bug#257730: xserver-xfree86: enviroment variable LD_LIBRARY_PATH unset in XFree86
> Well, the X server wrapper is setuid root. I hope you can appreciate the
> grave security implications of letting users redefine the dynamic loader's
> search path in the context of a process running with root privileges.
I didn't realize that, thanks.
> > I also tried to start X with xinit command but with same result. After
> > return from X variable is set right.
> >
> > LD_LIBRARY_PATH is needed by java to point to directory /usr/lib/jni used
> > for non-java libraries such as libJavaEditline.so.
>
> Why don't you set up your user session to set the variable how you like?
> Please see the Xsession(5x) and xinit(1x) manual pages.
>
You mean to put "export LD_LIBRARY_PATH= ..." into .xinitrc ? Of course I
tried it but again other exports are ok but this is ignored. Workaround
is to put it into .bashrc which works for me.
Jan
Reply to: