Posted February 18, 2019
[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"
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.
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.
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.