Configuring environment

In the rc.local file, we have the following :

export LD_LIBRARY_PATH=/usr/ourstuff/lib:$LID_LIBRARY_PATH
inetd

We also added “LD_LIBRARY_PATH” to the /etc/default/login file, such that it
would be exported to the any user’s sessions.

This all works fine when working directly from Photon/console on the actual
computer. However, when we Phindows into the said computer, the extra
library path is not defined. What gives? How do I fix this?