can I set LD_PRELOAD in jaunty?

sktsee sktsee at tulsaconnect.com
Sat Jun 27 15:04:48 UTC 2009


On Fri, 2009-06-26 at 03:58 +0000, Cameron Hutchison wrote: 
> <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.
> 
Actually, both system and user .profile files are sourced by
the /etc/gdm/Xsession script:

# First read /etc/profile and .profile
test -f /etc/profile && . /etc/profile
test -f "$HOME/.profile" && . "$HOME/.profile"
# Second read /etc/xprofile and .xprofile for X specific setup
test -f /etc/xprofile && . /etc/xprofile
test -f "$HOME/.xprofile" && . "$HOME/.xprofile"

-- 
sktsee






More information about the ubuntu-users mailing list