Epic Games Store: installed base game skipped when its manifest has an empty `MainGameAppName`
Bug description
"Reload" on the Epic Games Store service fails to detect the installed Caravan SandWitch base game. EGSLauncher.iter_manifests() (lutris/util/egs/egs_launcher.py) skips every manifest whose MainGameAppName differs from AppName, which is meant to filter out DLC:
if manifest_content["MainGameAppName"] != manifest_content["AppName"]:
continueThe local manifest for Caravan SandWitch, installed with launcher 20.3.1, contains an empty string in MainGameAppName (and in MainGameCatalogItemId, MainGameCatalogNamespace) for this base game:
"DisplayName": "Caravan SandWitch",
"AppName": "e1f0b4ad4b16426e991276aceb81bbe2",
"MainGameAppName": "",
"MainGameCatalogItemId": "",
"CatalogItemId": "9327ca5d08bb4af99017cb458c2f9396",
"InstallLocation": "C:\\Program Files\\Epic Games\\CaravanSandWitch"For this manifest, the inequality is true ("" != "e1f0b4ad4b16426e991276aceb81bbe2"), so the scanner skips the game. It is the only .item file in the local manifest directory; running the installed iter_manifests() against that directory yields no manifests. The manifest also has bIsIncompleteInstall: false. This verifies the filtering problem for this game, without assuming all base-game manifests have the same format.
The scanner check is read-only; it does not create a Lutris entry or test the complete GUI import flow.
How to reproduce
- Connect the Epic Games Store service, install the
epic-games-storeclient (tested with launcher 20.3.1). - Install Caravan SandWitch inside the launcher, then close it. Confirm its
.itemmanifest has an emptyMainGameAppNameand a nonemptyAppName. - Click "Reload" on the Epic Games Store sidebar entry.
Expected: a Lutris entry for the installed game is created.
Actual: nothing happens; ProgramData/Epic/EpicGamesLauncher/Data/Manifests/*.item contains the game.
Suggested fix
Allow an empty MainGameAppName through this filter while continuing to skip manifests that explicitly name a different parent game, e.g. (proposed change; DLC behavior needs regression coverage):
main_app = manifest_content.get("MainGameAppName") or manifest_content["AppName"]
if main_app != manifest_content["AppName"]:
continueEnvironment
- Lutris 0.5.22 (Arch Linux package), the same filter exists in upstream revision 5fb532ab
- Epic Games Launcher 20.3.1 with Epic Online Services 5.7.0, under GE-Proton11-7 via umu
Source: lutris/lutris