Declaration of an initial environment in Ignition

Dear Supporters,

is there a way to define an environment variable, in particular LD_LIBRARY_PATH to ensure it is taken by the Ignition gateway at start time?. I did it by adding to ignition.sh the name of a file including just the setting of the variable:

List of files to source prior to executing any commands. Use ‘;’ as delimiter.

For example:

FILES_TO_SOURCE="/home/user/.bashrc;anotherfile;…/file3"

The file I create includes a specific LD_LIBRARY_PATH value, however, it apparently is not recognized, because through an script running in the gateway
print (os.environ[‘LD_LIBRARY_PATH’]) reports that this variable is not defined.

Thanks in advance,
Patricia

The wrapper that actually launches Ignition is a proprietary executable. You’d have to research what it allows. If this is related to getting some sort of python-related ‘C’ lib to run in Ignition, you are wasting your time. Java won’t be able to call anything loaded that way.

See if this works: https://wrapper.tanukisoftware.com/doc/english/props-envvars.html#definition