Skip to content

Environment Variables

You can use environment variables in front of the script to access some functionality. You may want to use the config file instead of the environment variables, but sometimes it may not be possible to use the config file, in that case you can use the following:

  • FORCE_UPDATE_WEMOD=1 to force update wemod.exe
  • REPO_STRING=DeckCheatz/wemod-launcher sets the repo link part to use for download, to use, replace DeckCheatz/wemod-launcher with the desired username and repo name
  • PACKAGEPREFIX=true to make a zip of your active prefix
  • WEMOD_LOG=wemod.log sets the WeMod log path, to use, set wemod.log to the desired path
  • WINE_PREFIX_PATH=$PPath to set the path of the wineprefix, if you are using an external runner (like GE-Wine on Lutris)
  • SCANFOLDER=$PrefixFolder to change the folder to look for the prefixes in (like /home/$USER/games). Keep in mind this folder is expected to have many prefixes so don’t use a prefix folder but the parent folder. For example /home/$USER/games/planet-crafter/pfx/drive-c/ is 3 folders too deep, you want to use /home/$USER/games instead.
  • SELF_UPDATE=False to block launcher auto updates.
  • TROUBLESHOOT=False or True to disable / enable the troubleshooter.
  • NO_EXE=True to help when wemod-launcher gives a “Game Missing” error due to some 3rd party launchers being involved (i.e. EA app)
  • GAME_FRONT='["cmd", "/c", "exit"]' set this to any list command to add in front of the game. The list '["cmd", "/c", "exit"]' (used here as an example) will basically skip the game start.

Example

If you are using environment variables, your Launch Options may look like this:

PACKAGEPREFIX=false FORCE_UPDATE_WEMOD=1 /home/$USER/wemod-launcher/wemod %command%