openOMSI GitHub Discord
Environment variables

Docs / Reference / Environment variables

Start-up and the start guard

1 min readEdit this pagedocs/DEBUG_FLAGS.md

The start guard watches each start and heals an installation that crashes or hangs (see Troubleshooting and Versions and releases). The last two variables are set by the launcher and the guard for the processes they start; you do not set them yourself.

Variable Values / default What it does
OMSI_SAFE_MODE flag Safe mode: basic render pipelines and no plugins. The start guard sets it after failed starts.
OMSI_SAFE_GPU number; default 0 After a lost graphics device the game restarts lighter on the card each time; this counts the restarts. Set by the restart and on Android.
OMSI_NO_GUARD flag No start guard: a start that crashes or hangs is not healed by an update or by going back to the previous version.
OMSI_GUARD_DEADLINE seconds; default 120 How long the launcher may take to its first frames before the start counts as hung. The guard then ends it and heals the installation.
OMSI_LAUNCHER path The program a plain start opens as launcher, instead of openomsi-launcher-app beside the game.
OMSI_SCREEN_AT x,y (desktop pixels) The screen the game window opens on. The launcher sets it to the screen it stands on.
OMSI_INSTANCE id The id of a game instance the launcher started. Set for the child process.
OMSI_GUARD_STATE <pid>:<state file> Set by the start guard for the process it watches.

Something wrong or missing? Fix it on GitHub or open an issue.

↑↓ to move↵ to open