Posted February 18, 2019
Thanks - from the reg file you sent me it looks like it just the entries below. I'll add them to the registry file for the wrapper & update it later :)
[HKEY_LOCAL_MACHINE\Software\Firaxis Games\Sid Meier's Civilization 4]
"INSTALLDIR"="C:\\Civilization IV Complete\\Civ4"
[HKEY_LOCAL_MACHINE\Software\Firaxis Games\Sid Meier's Civilization 4 - Beyond the Sword]
"INSTALLDIR"="C:\\Civilization IV Complete\\Civ4\\Beyond the Sword"
[HKEY_LOCAL_MACHINE\Software\Firaxis Games\Sid Meier's Civilization 4 - Warlords]
"INSTALLDIR"="C:\\Civilization IV Complete\\Civ4\\Warlords"
One other thing you could try (possibly alongside setting the SDL_VIDEO_MINIMIZE_ON_FOCUS_LOSS environment variable) is to run the game in a virtual desktop. There are a number of ways to do this with my scripts - you can use a file named "desktop" in the support directory, or you can run the script with desktop=<res> (where <res> is either the resolution to use, "d" to use the detected desktop resolution, or "0" to disable forcing a virtual desktop), or you can run winecfg and set one there. See the release notes for more information about configuring a virtual desktop with my scripts.
[HKEY_LOCAL_MACHINE\Software\Firaxis Games\Sid Meier's Civilization 4]
"INSTALLDIR"="C:\\Civilization IV Complete\\Civ4"
[HKEY_LOCAL_MACHINE\Software\Firaxis Games\Sid Meier's Civilization 4 - Beyond the Sword]
"INSTALLDIR"="C:\\Civilization IV Complete\\Civ4\\Beyond the Sword"
[HKEY_LOCAL_MACHINE\Software\Firaxis Games\Sid Meier's Civilization 4 - Warlords]
"INSTALLDIR"="C:\\Civilization IV Complete\\Civ4\\Warlords"
Pangaea666: Couldn't get the shortcut working with this extra entry, and I tried to insert it in various places. Got it running from terminal, however, but the minimising thing still occurs. Found another command and tried that too, but that didn't work either. Weird. There is a message (in terminal) about "Not forcing virtual desktop", but I don't know if that is relevant here.
There is a slight difference between them (the shortcut needs the "env" part at the beginning), but if it still didn't work when started from the terminal then it won't make any difference. One other thing you could try (possibly alongside setting the SDL_VIDEO_MINIMIZE_ON_FOCUS_LOSS environment variable) is to run the game in a virtual desktop. There are a number of ways to do this with my scripts - you can use a file named "desktop" in the support directory, or you can run the script with desktop=<res> (where <res> is either the resolution to use, "d" to use the detected desktop resolution, or "0" to disable forcing a virtual desktop), or you can run winecfg and set one there. See the release notes for more information about configuring a virtual desktop with my scripts.