[CentOS] Cannot get LD_LIBRARY_PATH to work under NX (freenx)

Mon Jun 8 18:44:20 UTC 2009
Filipe Brandenburger <filbranden at gmail.com>

Hi,

On Mon, Jun 8, 2009 at 14:38, Andrzej Szymanski<szymans at agh.edu.pl> wrote:
> Everything works fine under standard ssh login, but under NX client the
> LD_LIBRARY_PATH variable is missing (the R_HISTSIZE is exported properly).
>
> Any hints?

This is probably not related to NX, but to the terminal emulator you
are using (gnome-terminal, kterm, etc.). Some of them do not open
"login" shells (the ones that read .bash_profile) but only
"interactive" shells (the ones that read .bashrc).

Moving those lines from .bash_profile to .bashrc should work for both
cases (as .bash_profile usually sources .bashrc) and solve your
problem in both SSH sessions and NX sessions.

HTH,
Filipe