Environment variables

From Eternity Wiki
Jump to: navigation, search

Eternity uses the following environment variables (not all of them are Doom or Eternity specific):

  • DOOMWADDIR: optional directory to Doom IWADs.
  • DOOMWADPATH: more advanced version of DOOMWADDIR, which uses a PATH-like syntax for multiple IWAD paths.
  • ETERNITYBASE: the base/ directory where Eternity should find its main EDF and eternity.pke assets. If unspecified, it will look for base/ folder in the current working directory or from below the Eternity installation location, depending on system. It can also be set from the -base command-line parameter. Note that launchers such as the macOS Eternity launcher presets this to the correct path (which is inside the app bundle) before starting the game.
  • ETERNITYUSER: the user/ directory where Eternity should find your user settings, savegames and screenshots. If unspecified, it will look for user/ folder in the current working directory or from the typical user settings location, depending on system. It can also be set from the -user command-line parameter. Note that launchers such as the macOS Eternity launcher presets this to the correct path (which is inside the hidden ~/Library/Application Support folder) before starting the game.
  • HOME: Linux only, if XDG_CONFIG_HOME is not set, is the prefix for finding the user/ path. Also works as an alternative for DOOMWADDIR when looking for IWADs.
  • TEXTSCREEN_FONT: optional, used by the ENDOOM display to choose font.
  • XDG_CONFIG_HOME: Linux only, if set, it substitutes the HOME location for finding the user/ path.