Docs / Reference / Environment variables
Content, folders and plugins
| Variable | Values / default | What it does |
|---|---|---|
OMSI_ROOT |
folder; default: found automatically | The OMSI 2 installation folder. Tests that need real content also use it as content root. |
OMSI_CONTENT |
folder; default: beside the game | The content folder (mods, archives, screenshots). Android and iOS set it at runtime. |
OMSI_CONTENT_ZIP |
paths, separated like PATH |
Extra content archives, as --content-zip. |
OMSI_AMBIENCE_DIR |
folder | Folder of the ambience recordings (with its pack.json), instead of ambience beside the program or in ~/.openomsi. |
OMSI_AVATARS_DIR |
folder | Folder of the passenger avatars (with its pack.json), instead of avatars beside the program or in ~/.openomsi. |
OMSI_TROLLEY_FILE |
file | An overhead wire description to use instead of the map's own trolley.txt. |
OMSI_TOMORROW_API_KEY |
key; default: read from the key file | Private Tomorrow.io API key for live weather. Never put it in map files or logs. |
OMSI_TOMORROW_KEY_FILE |
file; default settings/tomorrow-api-key.txt |
Private text file holding your Tomorrow.io API key. |
OMSI_TOMORROW_CACHE_DIR |
folder; default settings/weather-cache |
Private cache of Tomorrow.io answers and the shared request budget. |
OMSI_NO_PLUGINS |
flag | No plugins loaded. |
OMSI_PLUGIN_FULL_ACCESS_DEV |
plugin names, separated by commas | Give these plugins full access without asking, for a developer's own plugins while they work on them (see PLUGINS.md). The game logs a warning for each. Never for plugins you did not write. |
OMSI_PLUGIN_HOST32 |
path; default: beside the game | Path of omsi-plugin-host32.exe, which runs 32-bit OMSI plugins. |
OMSI_PLUGIN_PROCESS_ALLOW |
path of a JSON manifest | Pre-approve plugin helper programs: the manifest binds plugin content and helpers in its folder to SHA-256 hashes. Otherwise the game asks the player. Any change revokes the approval; packages must declare process. Approved programs run with the game's account permissions. |
OMSI_WINE |
path; default: found on the PATH | The Wine program used to run Windows plugins. |
Something wrong or missing? Fix it on GitHub or open an issue.