Find local game install paths across Steam, Heroic, and Lutris.
Project description
game-install-finder
Find local game install paths across PC game launchers. Supports Steam, Heroic, and Lutris.
game-install-finder discovers local launcher libraries, enumerates installed games, and resolves
game install paths by launcher metadata. It currently reads Steam VDF/ACF metadata, Heroic and
Legendary installed-game JSON, and Lutris pga.db metadata. The tool only reads local files and
does not call any game store or launcher web API.
Features
- Detects Steam, Heroic, and Lutris on Windows, Linux, and macOS where local launcher metadata is available.
- Parses Steam
libraryfolders.vdfwith thevdfpackage instead of brittle string splitting. - Includes games from primary and secondary Steam libraries.
- Reads Steam
appmanifest_*.acffiles to report appid, name, install directory, manifest path, and resolved local game path. - Reads Heroic/Legendary
installed.jsonmetadata and Lutrispga.dbinstalled-game metadata. - Supports exact Steam appid lookup and fuzzy installed-game name matching across launchers.
- Emits machine-readable JSON, with optional pretty printing.
- Keeps project virtualenvs and tool caches under
/tmp/game-install-finderthrough./run.sh.
Installation
Install project dependencies with uv through the repository wrapper:
./run.sh uv sync
The wrapper configures the project virtual environment and caches outside the repository:
UV_PROJECT_ENVIRONMENT=/tmp/game-install-finder/.venv
XDG_CACHE_HOME=/tmp/game-install-finder/.cache
PYTHONPYCACHEPREFIX=/tmp/game-install-finder/__pycache__
TMPDIR=/tmp/game-install-finder
Usage
Run the CLI from the repository root:
./run.sh uv run game-install-finder --help
List installed games:
./run.sh uv run game-install-finder --list-games --pretty
Print the detected Steam installation path:
./run.sh uv run game-install-finder --steam-path --pretty
Use an explicit Steam root instead of auto-detection:
./run.sh uv run game-install-finder --steam-root PATH --list-games --pretty
Use explicit Heroic or Lutris metadata roots instead of auto-detection:
./run.sh uv run game-install-finder --heroic-root PATH --lutris-root PATH --list-games --pretty
Limit list or fuzzy search results to one launcher:
./run.sh uv run game-install-finder --launcher heroic --appid-from-name NAME --pretty
Find an installed Steam game by appid:
./run.sh uv run game-install-finder --app-id APPID --pretty
Fuzzy match an installed game name:
./run.sh uv run game-install-finder --appid-from-name NAME --pretty
Enable non-fatal parser and discovery warnings:
./run.sh uv run game-install-finder --list-games --debug --pretty
CLI Options
--steam-path Return detected Steam installation path
--steam-root PATH Use this Steam installation path instead of auto-detection
--heroic-root PATH Use this Heroic or Legendary config path instead of auto-detection
--lutris-root PATH Use this Lutris data path instead of auto-detection
--list-games Enumerate installed games
--launcher LAUNCHER Filter installed games by launcher
--app-id APPID Lookup installed game by appid
--appid-from-name NAME Fuzzy match installed game name to appid
--pretty Pretty-print JSON output
--debug Print non-fatal parser/discovery warnings to stderr
JSON output
All successful commands include steam_path. Additional fields depend on the selected lookup.
--list-games adds games, an array of records shaped like:
{
"appid": "730",
"launcher": "steam",
"name": "Counter-Strike: Global Offensive",
"installdir": "Counter-Strike Global Offensive",
"path": "/home/user/.local/share/Steam/steamapps/common/Counter-Strike Global Offensive",
"exists": true,
"source": "/home/user/.local/share/Steam/steamapps/appmanifest_730.acf",
"library": "/home/user/.local/share/Steam",
"manifest": "/home/user/.local/share/Steam/steamapps/appmanifest_730.acf"
}
--app-id APPID adds:
{
"game": {
"appid": "730",
"launcher": "steam",
"name": "Counter-Strike: Global Offensive"
},
"app_path": "/home/user/.local/share/Steam/steamapps/common/Counter-Strike Global Offensive"
}
Heroic and Lutris records use the same shape and include launcher, name, path, exists, and
source; Steam-only fields such as library, manifest, and installdir are null when they do
not apply.
--appid-from-name NAME adds match, candidates, and score. By default it searches Steam,
Heroic, and Lutris records; use --launcher to narrow the search. If no confident fuzzy match is
found, match is null and candidates still lists the closest installed game names.
Errors are emitted as JSON and return a non-zero exit code:
{
"error": "Steam installation not found"
}
Dependency requirements
- Python 3.12 or newer for this project.
uvfor dependency management, packaging, and command execution.- Runtime dependency:
vdf, used to parse Steam VDF and ACF metadata. - Heroic metadata is parsed with the Python standard library
json. - Lutris metadata is parsed with the Python standard library
sqlite3. - Development tools:
pytest,pytest-cov,ruff, andty.
Development
Run all project commands through ./run.sh:
./run.sh uv run ruff check . --fix
./run.sh uv run ruff format .
./run.sh uv run ty check src/
./run.sh uv run pytest
Build the package with uv:
./run.sh uv build --no-sources
The repository follows the local agent protocol in AGENTS.md: plans live under docs/plans/,
tests must precede implementation changes, and generated caches must stay outside the repository.
Publishing
PyPI publishing is configured for GitHub Actions Trusted Publishing. The PyPI project should be configured with:
- Project name:
game-install-finder - Owner:
beallio - Repository name:
game-install-finder - Workflow name:
workflow.yml - Environment name:
pypi
Release by pushing a version tag after the GitHub repository and PyPI Trusted Publisher are set up:
git tag -a v0.1.0 -m v0.1.0
git push origin v0.1.0
License
MIT - See LICENSE for details.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file game_install_finder-0.2.0.tar.gz.
File metadata
- Download URL: game_install_finder-0.2.0.tar.gz
- Upload date:
- Size: 9.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.11.12 {"installer":{"name":"uv","version":"0.11.12","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b69cc219941fb36c257e6a4531bcfb68e9e54ce24fea160a8151fdba9f59167f
|
|
| MD5 |
80fc08add3509deda9cb2d6fd4f72cd5
|
|
| BLAKE2b-256 |
2889f0a0d1cd8aefb8138540963ce4c406f48e0f1212ba291cb7f3624dc86689
|
File details
Details for the file game_install_finder-0.2.0-py3-none-any.whl.
File metadata
- Download URL: game_install_finder-0.2.0-py3-none-any.whl
- Upload date:
- Size: 11.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.11.12 {"installer":{"name":"uv","version":"0.11.12","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3110bd1bf23c41fed50dfaf0f248f716b87ad048a6ad89d6b1adba3a7c6883d0
|
|
| MD5 |
c2b7cae4c3664b344562e94609f2428d
|
|
| BLAKE2b-256 |
9908022393dc44d5e198cdec587d5579b6b38c2d0bd3353de31c25154025b382
|