wem cfg
wem cfg morrowind
The wem cfg
command allows editing and viewing the WEM configuration for a particular env. Running cfg
with no arguments will print the selected env's configuration to stdout.
Environment variables such as $HOME
are supported, and you can use values in other values via the {{.ThingName}}
syntax (note the leading period).
wem cfg morrowind --install-expected "{{.WinePrefix}}/drive_c/game/Morrowind.exe" \
--wine-prefix /home/hristos/games/WinePrefixes/morrowind
Note that nested variables do render:
wem cfg morrowind --install-expected "{{.WinePrefix}}/drive_c/game/Morrowind.exe" \
--wine-prefix \$HOME/games/WinePrefixes/morrowind
Use the --no-render
flag to disable rendering of variables:
wem cfg morrowind --no-render
Only print changed values with --no-unchanged
:
wem cfg morrowind --no-render --no-unchanged
Options may be set or changed as well:
wem cfg morrowind --dxvk-version "1.8.1"
However the --save
flag must be used to persist changes:
wem cfg morrowind --dxvk-version "1.8.1" --save
Note that any variables used will be rendered when saving, unless the --no-render
flag is used:
wem cfg morrowind --dxvk-version "1.8.1" --no-render --save
Check out the Options documentation for details about all options.
All config values are stored in the env's config file in the $HOME/.config/wem
directory.
cat $HOME/.config/wem/morrowind.cfg
Date = "2002-05-01"
DxvkVersion = "2.6.1"
Esync = false
Fsync = true
GogSilentInstall = true
InstallArgs = []
InstallExe = "{{.InstallWorkDir}}/setup_tes_morrowind_goty_2.0.0.7.exe"
InstallExpected = "{{.RunExe}}"
InstallOnlyPost = false
InstallOnlyPre = false
InstallWorkDir = "$HOME/games/install_media/TES_Morrowind"
Kron4ekType = "staging-tkg-ntsync-amd64-wow64"
Kron4ekVersion = "10.12"
Name = "The Elder Scrolls III: Morrowind GOTY Edition"
QuietRun = false
ReducePulseLatency = false
RestartPulse = false
RestoreResolution = false
RunArgs = []
RunExe = "{{.RunWorkDir}}/Morrowind.exe"
RunPrefix = ""
RunWorkDir = "{{.WinePrefix}}/drive_c/game"
Sandbox = false
SandboxBlacklist = []
SandboxDns = ""
SandboxIpcNamespace = false
SandboxMachineId = false
SandboxNetNone = false
SandboxNoDbus = false
SandboxNoPrinters = false
SandboxNoU2f = false
SandboxPrivateCache = false
SandboxPrivateCwd = false
SandboxPrivateTmp = false
SandboxWhitelist = []
SingleCore = false
SysEnvVars = []
UmuGameid = ""
UmuVersion = ""
VirtualDesktop = ""
Vkd3dVersion = ""
VulkanIcdLoader = ""
WineArch = "win64"
WineArgs = []
WineDllOverrides = "d3d8=n,b;mwse=n,b;csse=n,b"
WineExe = ""
WinePrefix = "/home/larry/games/WinePrefixes/morrowind"
WinetricksPath = "winetricks"
[[InstallPost]]
args = ["d3dcompiler_43", "d3dcompiler_47", "vcrun2010", "d3dx9"]
cmd = "{{.WinetricksPath}}"
icmd = ""
ifexists = ""
ifnotexists = ""
workdir = ""
[[InstallPost]]
args = ["{{.InstallWorkDir}}/Morrowind Code Patch-19510-2-4.7z", "9741f121d9b21b9ba4935c793cab9e94785cdae34eb901c2b29f9c571e46cfb6a52db8d4cea3daaac1cbab97fd161699c8e0915a844833beead7aa0d5ac312cf"]
cmd = ""
icmd = "checkSha512Sum"
ifexists = "{{.InstallWorkDir}}/Morrowind Code Patch-19510-2-4.7z"
ifnotexists = ""
workdir = ""
[[InstallPost]]
args = ["{{.InstallWorkDir}}/MGE XE Manual Install-41102-0-18-0-1731358584.7z", "74616f62f71e09f8d03341da137a82264cc27da3a148749978671cc63ed17408e2d705d91fdb838a41b656beb374d5afdcff58a6aae6bf45eeda4ef74bb30dc7"]
cmd = ""
icmd = "checkSha512Sum"
ifexists = "{{.InstallWorkDir}}/MGE XE Manual Install-41102-0-18-0-1731358584.7z"
ifnotexists = ""
workdir = ""
[[InstallPost]]
args = ["x", "-o{{.RunWorkDir}}/", "Morrowind Code Patch-19510-2-4.7z"]
cmd = "7z"
icmd = ""
ifexists = "{{.InstallWorkDir}}/Morrowind Code Patch-19510-2-4.7z"
ifnotexists = "{{.RunWorkDir}}/Morrowind Code Patch.exe"
workdir = ""
[[InstallPost]]
args = ["x", "-o{{.RunWorkDir}}/", "MGE XE Manual Install-41102-0-18-0-1731358584.7z"]
cmd = "7z"
icmd = ""
ifexists = "{{.InstallWorkDir}}/MGE XE Manual Install-41102-0-18-0-1731358584.7z"
ifnotexists = "{{.RunWorkDir}}/MGEXEgui.exe"
workdir = ""
[[InstallPost]]
args = ["{{.RunWorkDir}}/Morrowind Code Patch.exe"]
cmd = "{{.WineExe}}"
icmd = ""
ifexists = "{{.RunWorkDir}}/Morrowind Code Patch.exe"
ifnotexists = ""
workdir = "{{.RunWorkDir}}"
[[InstallPost]]
args = ["{{.RunWorkDir}}/MGEXEgui.exe"]
cmd = "{{.WineExe}}"
icmd = ""
ifexists = "{{.RunWorkDir}}/MGEXEgui.exe"
ifnotexists = ""
workdir = "{{.RunWorkDir}}"
[[InstallPost]]
args = ["{{.RunWorkDir}}/MWSE-Update.exe"]
cmd = "{{.WineExe}}"
icmd = ""
ifexists = "{{.RunWorkDir}}/MWSE-Update.exe"
ifnotexists = ""
workdir = "{{.RunWorkDir}}"