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.