can I set LD_PRELOAD in jaunty?
lists at xdna.net
Fri Jun 26 03:58:37 UTC 2009
<mr.lequoctuan at gmail.com> writes:
>I try to add this line to .profile
> "export LD_PRELOAD=..."
>but after login (tty7), no thing goes
>I thing it has unset
>if I login use tty1, it set
>has ubuntu disable LD_PRELOAD in X11?
When you log in with X11, you are not running a login shell anywhere, so
..profile will not be run. This means none of your settings in .profile
will get loaded in an X11 session. When you start a X11 terminal, it
will not run a login shell, so .bashrc will be loaded, not .profile.
If you are using GNOME and you want to set an environment variable in
your X11 session, you can put the "export LD_PRELOAD=..." in
$HOME/.gnomerc. This script is sourced during X11 init from
/etc/X11/Xsession.d/55gnome-session_gnomerc . KDE may have something
similar, or you can write your own Xsession.d script like this:
if [ -r "$X11RC" ]; then
This would source the contents of $HOME/.x11rc to set up the environment
for your X session.
More information about the ubuntu-users