C12: DUSK (519860) is a native Linux game with no CompatToolMapping entry,
so the old rule kept Proton Experimental, SLR 4.0 and the redistributables
for good. A game now also counts as covered when Valve runs it natively:
no mapping of kuhy's (or an empty one), linux in appinfo's common/oslist,
and no Valve tool pick (its own config/app_mappings or app 891390's). Any
doubt still keeps them: an unreadable or old-format appinfo.vdf, a game
missing from it, no 891390 pick list, or a native game forced onto another
tool.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Steamworks Common Redistributables, Steam Linux Runtime 4.0 and Proton
Experimental stay in PROTECTED_APP_IDS, so no guard ever calls them an
unauthorized game. uninstall_other_games now ends with a step that
uninstalls them, through uninstall_game, only when all of these hold:
- Steam is not running (pgrep steam.sh, as _ensure_steam_running);
- config.vdf parses and has a CompatToolMapping block;
- every installed non-tool appmanifest maps to proton-cachyos-native;
- that tool's toolmanifest.vdf exists.
Anything else keeps all three and logs "kept Steam tools: <reason>";
a running Steam logs "Steam running, deferring tool removal". No game
installed counts as not needed and says so.
- _tool_need.py decides. Every error keeps the tools.
- _vdf_text.py is a stdlib KeyValues parser. The repo had none, and the
root daemon's system python has no vdf package.
- _steam_client.steam_client_running() returns None when pgrep cannot
tell. _ensure_steam_running behaves as before.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>