<env>

(Optional) The name and value of environment variables

Parent elements:

<qnx>, <configuration>

Child elements:

None.

Description:

The <env> element specifies the name and value of environment variables. For example, you can use the LD_LIBRARY_PATH environment variable to specify the name of the linker variable used by the OS to find shared libraries required by the application. In addition, you can use custom environment variables where the use of program arguments aren't possible.

For instance, you can set LD_LIBRARY_PATH to a value of app/playbook/native/lib to specify where to find the required binaries.

Content:

None.

Attributes:

Name Description Values Default
value (Required) Specifies the value for the environment variable, such as app/playbook/native/lib. A string that uniquely identifies the value within the application descriptor file. The string value must only contain digits, letters, white-spaces, and underscores, and they must begin with a letter or underscore. None
var (Required) Specifies the name of the environment variable, such as LD_LIBRARY_PATH. A string that uniquely identifies the variable within the application descriptor file. The string value contains only digits, letters, and underscores, and they must begin with a letter or underscore. None

Example:

<env var="LD_LIBRARY_PATH" value="app/playbook/native/lib"/>