For Omnis Studio
By Gary Ashford, Omnis Engineering
Introduction
This Technote describes how you can set system environment variables prior to starting Omnis.
It may be necessary to set system environment variables for example when using DAMs in conjunction with external client libraries.
Although there may be other techniques, the recommended approach for setting environment variables on each platform is outlined below.
In Windows 10, open the system environment variables settings by pressing the Windows key
then type "env" + Return.
User variables apply to the current user only. System environment variables apply for all users.
If you edit or create environment variables, confirm the dialog windows by pressing "OK". You will need to restart Omnis in order for the changes to take effect.
Note that within Omnis, you can confirm environment variable settings using the getenv() function, for example:
Calculate #S1 as getenv('Path')
Please note that it is no longer possible to use/set the DYLD_LIBRARY_PATH environment variable as of macOS 10.11 (El Capitan) unless
SIP is turned off, and no longer recommended for security reasons.
Omnis Studio 10.0.1 and Earlier
Prior to Omnis Studio 10.1, we provided individual DAM .ini files located inside the
Omnis.app/Contents/MacOS/xcomp/ini folder.
When Omnis creates a DAM session object, it reads the corresponding DAM .ini file and sets the required environment variables.
In the case of the oracle8dam.ini file, the contents might contain similar to:
In Omnis Studio 10.1 and later, we have migrated the .ini files into the config.json file located in the
omnis-writable-files-folder folder. In the case of Studio 10.1, this will be similar to:
/Users/myUser/Library/Application Support/Omnis/Omnis Studio 10.1 25120/studio/config.json
Environment variables for each DAM can be assigned insode the "macOS" section, for example:
On Linux systems, the recommended approach is to create/edit a script which will set the required environment variables prior to starting Omnis.
For example, create a text file containing the following: