1

I upgraded my system from 14.04 to 16.04 a while ago, but this problem has been really bothering me since, and I still don't have a solution.

When I start an application from a launcher (like MATLAB), I found that the LD_LIBRARY_PATH variable is not defined as in my .bashrc file, which causes that some of my codes stop working.

Similarly, when I double-clicking a binary and start those from Thunar, the application is also not aware of the environment var settings in .bashrc.

can anyone know to fix this problem? it worked perfectly fine in xubuntu 14.04 and older versions.

FangQ
  • 387

1 Answers1

1

If the problem you are describing is that it is failing to source your bashrc file, try the following: Check your ~/.profile file and add something like this:

if [ -n "$BASH_VERSION" ]; then
    if [ -f "$HOME/.bashrc" ]; then
        . "$HOME/.bashrc"
    fi
fi

Then, try opening a terminal again and see if it sources it.

Mike D
  • 168