- Python 100%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| proton_run | ||
| tests | ||
| .gitignore | ||
| LICENSE | ||
| pyproject.toml | ||
| README.md | ||
proton-run
A wine-like CLI wrapper around umu-launcher with its own
Steam-independent Proton-GE / Proton-CachyOS manager.
$ proton-run notepad.exe
$ proton-run --prefix games app.exe --windowed
proton-run does not reimplement Proton or umu's container/runtime logic. It resolves a prefix, a Proton build,
a game ID, and a verb, exports the right environment, and executes umu-run. Proton builds are downloaded,
SHA-512-verified, and kept in proton-run's own store; Steam is not required.
Features
- Run arbitrary Windows executables with a wine-like command line.
- Named, isolated Wine prefixes with automatic first-run bootstrap and per-prefix Proton association.
- Per-prefix and per-launch environment overrides (DLL overrides, Proton options, and similar).
- Install, list, update, and remove Proton-GE and Proton-CachyOS builds without Steam.
- GitHub Releases API discovery (no hard-coded asset filenames), exact architecture matching, mandatory SHA-512 verification, resumable downloads, and safe archive extraction.
winetricks,winecfg, andprefix winpathhelpers.- A
doctorcommand for diagnosing umu/Proton/prefix setup. - Stdlib-only Python: no runtime dependencies.
Requirements
- Linux on
x86_64oraarch64/arm64. umu-launcher1.4 or newer withumu-runonPATH.- Python 3.11.4+ (for
tarfile's safe extraction filters). - Network access on first use: umu automatically downloads the Steam Linux Runtime (SLR) it needs. This does not require Steam.
- Enough disk space: current Proton builds are roughly 350–650 MiB compressed and 1.5–2 GiB extracted.
Installation
From a checkout:
python -m pip install --user .
# or
pipx install .
Without installing, run it as a module:
python -m proton_run --help
Quick start
# Install the latest Proton-GE and make it the default
proton-run proton install ge latest
# Run an executable; the default prefix is created automatically
proton-run notepad.exe
# Use a separate prefix and a different Proton build
proton-run --prefix games --proton proton-cachyos-11.0-20261015-slr app.exe
# Set persistent environment overrides for a prefix
proton-run prefix env games PROTON_SONY_HIDRAW_XINPUT=1
Commands
| Command | Purpose |
|---|---|
proton-run [run] <exe> [args...] |
Run an executable in the selected prefix. |
proton-run prefix create <name|path> |
Create and bootstrap a prefix explicitly. |
proton-run prefix list |
List prefixes, their Proton association, state, and size. |
proton-run prefix delete <name|path> |
Delete a prefix (asks for confirmation). |
proton-run prefix env <name|path> [KEY=VALUE...] |
Show or change persistent environment overrides. |
proton-run prefix winpath <name> <path> |
Convert Unix ↔ Windows paths with Proton's winepath. |
proton-run proton install <ge|cachyos> [version] |
Download, verify, and install a Proton build. |
proton-run proton list |
List installed builds. |
proton-run proton update [name] |
Install the latest release for a build's source. |
proton-run proton remove <name> |
Remove an installed build. |
proton-run proton set-default <name|path|none> |
Set the global default Proton. |
proton-run proton list-remote [ge|cachyos] |
Show available GitHub releases. |
proton-run winetricks [options] <verb>... |
Run winetricks verbs in a prefix. |
proton-run winecfg [options] |
Open winecfg in a prefix. |
proton-run doctor |
Check umu, Proton, prefix, and configuration health. |
proton-run help [command] |
Show help for a command. |
Use --help on any command for details.
Running executables
proton-run [options] <exe> [args...]
Options must come before the executable. Everything after <exe> is passed to it unchanged, even if it looks
like a proton-run option. Use -- if the executable name itself starts with -.
A known subcommand name is treated as a subcommand unless a file with that exact name exists in the current
directory. Write ./prefix (or proton-run -- ./prefix) to run such a file.
| Option | Meaning |
|---|---|
-p, --prefix NAME|PATH |
Prefix name (under the prefix base) or an arbitrary path. |
--proton NAME|PATH |
Proton build name in the store, or an arbitrary Proton directory. |
-g, --gameid ID |
GAMEID for umu. Default: umu-default. |
--verb VERB |
Proton verb. Default: waitforexitandrun. |
--concurrent |
Shorthand for --verb runinprefix, for launching a second tool while a prefix is busy. |
--no-fixes |
Set PROTONFIXES_DISABLE=1. |
--no-runtime-update |
Set UMU_RUNTIME_UPDATE=0. |
--env KEY=VALUE |
Set an environment override for this launch (repeatable; later values win). |
-n, --dry-run |
Print the umu-run command and managed environment without running it. |
If a prefix does not exist yet, proton-run creates its directory and marker, prints a notice, and lets umu/Proton
bootstrap it during the launch. prefix create is available when you want to bootstrap a prefix ahead of time.
Prefixes
Named prefixes live under $XDG_DATA_HOME/proton-run/prefixes (default ~/.local/share/proton-run/prefixes).
A path containing a separator (or starting with ~, ., or /) is treated as an arbitrary prefix path;
prefix list only scans the configured prefix base, so path prefixes are managed explicitly.
Each prefix contains a .proton-run.json marker recording the name, creation time, the Proton build used to create
it, the last used Proton, the last exit code, and any persistent environment overrides. On later launches, the
recorded Proton is preferred over the global default; --proton overrides both. Removing a recorded build produces
a warning and falls back to the global default. prefix list shows the number of env overrides in its ENV column.
prefix create --force re-bootstraps an existing prefix. prefix delete asks for confirmation and requires
--yes in non-interactive use; --force allows deleting a directory that has no marker or Wine registry files.
prefix winpath uses Proton's getcompatpath (Unix → Windows, default) and getnativepath (--native,
Windows → Unix) verbs.
Environment overrides
Persistent per-prefix overrides live in the prefix marker and are applied to every run, winetricks, winecfg,
winpath, and prefix create invocation for that prefix:
proton-run prefix env games PROTON_SONY_HIDRAW_XINPUT=1
proton-run prefix env games WINEDLLOVERRIDES='d3d11=n,b'
proton-run prefix env games # list
proton-run prefix env games --json
proton-run prefix env games --unset WINEDLLOVERRIDES
proton-run prefix env games --clear
prefix env does not bootstrap the prefix; setting overrides on a not-yet-created prefix creates its directory and
marker, but leaves Wine initialization for the first real run. One-off overrides are available on launches:
proton-run --prefix games --env WINEDLLOVERRIDES='d3d11=n,b' app.exe
Environment variable names must match [A-Za-z_][A-Za-z0-9_]*; values are strings (quote them in TOML).
Global defaults can be set in config.toml under [env]:
[env]
PROTON_SONY_HIDRAW_XINPUT = "1"
Precedence, lowest to highest: inherited environment → global [env] → prefix marker env → --env → proton-run's
managed variables. The managed variables WINEPREFIX, PROTONPATH, GAMEID, and PROTON_VERB cannot be
overridden through env; use --prefix, --proton, --gameid, and --verb instead. PROTONFIXES_DISABLE and
UMU_RUNTIME_UPDATE may be set as overrides, but the config and dedicated flags may still set them last.
Proton management
Sources:
| Source | Repository | Notes |
|---|---|---|
ge |
GloriousEggroll/proton-ge-custom |
.tar.gz, x86_64 and aarch64. |
cachyos |
CachyOS/proton-cachyos |
.tar.xz, x86_64, x86_64_v2/v3/v4, and arm64. |
Versions can be latest, a full tag (GE-Proton11-11, cachyos-11.0-20261015-slr), or a short form
(11-11, 11.0-20261015-slr). Release assets are discovered through the GitHub Releases API and matched by their
exact -<arch>[_<variant>] suffix, so a CachyOS _v3 build is never selected by accident on the default baseline.
proton-run proton install ge latest
proton-run proton install cachyos 11.0-20261015-slr
proton-run proton install cachyos latest --arch-variant v3
proton-run proton list-remote cachyos --limit 5
Every archive is checked against the release's .sha512sum file before extraction. Downloads resume from a .part
file, and the archive is removed after a successful install unless --keep-archive is passed.
The first installed build becomes the default if no default is configured. proton update [name] re-resolves
latest for the installed build's source, installs the newer build, repoints the default if it pointed at the old
one, and leaves the old build in place with a hint to remove it. proton update --all updates every installed build. Installed builds are not registered with Steam; proton-run passes an
absolute PROTONPATH directly to umu.
winetricks and winecfg
proton-run winetricks --prefix games corefonts dotnet48
proton-run winecfg --prefix games
umu special-cases the winetricks command and supplies the copy bundled with Proton. GAMEID=winetricks-gui is
not needed and is not set. Note that umu/winetricks exits with status 1 when all requested verbs are already
installed; proton-run propagates that code and prints a note rather than treating it as a crash.
umu-run winecfg may log WARNING: Executable not found: winecfg. That is expected: umu passes bare Wine tool names
through, and Proton resolves them from its own files/bin.
Configuration
The config file is $XDG_CONFIG_HOME/proton-run/config.toml (default ~/.config/proton-run/config.toml). It is
created/rewritten by proton set-default; comments may be lost when it is rewritten. Set PROTON_RUN_CONFIG to
use a different file (useful for testing or portable setups).
[defaults]
proton = "GE-Proton11-11" # build name in the store, or an absolute path
prefix = "default" # default prefix name or path
[paths]
proton_store = "~/.local/share/proton-run/protons"
prefix_base = "~/.local/share/proton-run/prefixes"
[behavior]
default_verb = "waitforexitandrun"
runtime_update_check = true # false -> UMU_RUNTIME_UPDATE=0
protonfixes = true # false -> PROTONFIXES_DISABLE=1
[env]
# Global overrides applied to every prefix; per-prefix env and --env win.
# PROTON_SONY_HIDRAW_XINPUT = "1"
# WINEDLLOVERRIDES = "d3d11=n,b"
Proton selection precedence for a launch:
--proton- the prefix marker's last-used/created-with Proton
defaults.proton- the only installed build (if exactly one exists)
If none applies, proton-run exits with an actionable error.
Cache data (GitHub API responses and resumable downloads) lives under $XDG_CACHE_HOME/proton-run. API responses
are cached for one hour; set GITHUB_TOKEN to raise GitHub's unauthenticated rate limit, and use --refresh on
proton install, proton update, or proton list-remote to bypass the cache.
umu environment semantics
proton-run sets these variables on top of your environment and any [env]/prefix/--env overrides:
| Variable | Value |
|---|---|
WINEPREFIX |
Absolute path to the selected prefix. |
PROTONPATH |
Absolute path to a validated Proton build (must contain proton and toolmanifest.vdf). |
GAMEID |
umu-default unless --gameid is given. |
PROTON_VERB |
waitforexitandrun by default; runinprefix with --concurrent. |
UMU_RUNTIME_UPDATE |
0 only when runtime update checks are disabled. |
PROTONFIXES_DISABLE |
1 only when protonfixes are disabled. |
STORE is deliberately not set. Your DISPLAY, WAYLAND_DISPLAY, WINEDEBUG, MANGOHUD, and other variables are
passed through untouched, unless you override them globally or for a prefix.
A GAMEID of the form umu-<digits> is interpreted by umu as a Steam App ID and may apply game-specific fixes.
proton-run warns when it sees that pattern.
Exit codes
proton-run returns umu-run's exit code verbatim. prefix create is the exception: because Proton may exit non-zero
after successfully bootstrapping an empty prefix, success is judged by the presence of drive_c/ and registry files.
A cancelled confirmation returns 1; an interrupt returns 130.
Caveats
- The first launch may download the Steam Linux Runtime (hundreds of MiB) and umu/protonfixes fetch metadata on each
launch. Use
--no-runtime-updateand/or--no-fixesfor snappier offline launches. - Prefix Proton associations are sticky by design. Changing
defaults.protondoes not migrate existing prefixes; pass--protonor recreate them. - Downloads are large. proton-run checks free space before downloading, but extraction also needs room.
- Proton builds are only managed for proton-run. They are not installed into Steam's
compatibilitytools.d. prefix deleterequires--yesin non-interactive use and refuses symlinks,/,$HOME, and the prefix base.- Env overrides cannot change
WINEPREFIX,PROTONPATH,GAMEID, orPROTON_VERB; use the dedicated flags.
Development
python -m unittest discover -s tests -v
The tests cover release-asset selection (including CachyOS _v3 decoys and legacy GE names), checksum parsing,
GitHub cache/rate-limit behavior, resumable downloads, safe extraction, prefix markers, Proton store operations,
environment override parsing and precedence, environment construction, and CLI parsing/dispatch. End-to-end checks against real Proton builds are intentionally
not part of the default suite.
Package layout:
proton_run/
cli.py argument parsing and dispatch
commands.py command implementations
config.py config.toml and XDG paths
env.py environment override validation/parsing
net.py GitHub API, cache, checksums, downloads
protons.py sources, asset selection, store management
archive.py safe extraction and Proton validation
prefixes.py prefix naming/discovery
markers.py prefix metadata and bootstrap detection
runner.py umu environment and execution
util.py shared helpers
License
GPL-3.0-or-later. See LICENSE.