Support running games under Proton.
Ther were some missing environment variables that were not taken into account.
This commit is contained in:
1 parent
cff2a47243
commit
044c1063d7
4 files changed
+209
-9
No files matched your search
@@ -306,6 +306,59 @@ focus and the window manager's active window must identify that same virtual
|
||||
desktop. Existing application focus, Linux windows, minimized/disabled windows,
|
||||
and ambiguous choices between multiple applications are left alone.
|
||||
|
||||
## Steam, Proton and Protontricks
|
||||
|
||||
Games and applications launched through Steam Play (Proton) work the same
|
||||
way as plain Wine applications, with no per-game setup: the reader's
|
||||
supervisor discovers the Proton prefix from `STEAM_COMPAT_DATA_PATH`
|
||||
(`<compatdata>/<appid>/pfx`) and starts the helper with that game's own
|
||||
Proton Wine. The same applies to programs started through Protontricks,
|
||||
including `protontricks-launch --appid <id> <program>` and windows opened
|
||||
by Winetricks verbs (`protontricks <appid> <verb>`).
|
||||
|
||||
What a supervisor must get right for Proton prefixes:
|
||||
|
||||
- **Use Proton's own loader.** The helper has to join the prefix's running
|
||||
wineserver, so it must be started through the same Wine build as the
|
||||
game. Steam Play processes run under Proton's preloader
|
||||
(`.../files/lib/wine/<arch>-unix/wine64-preloader`); the matching loader
|
||||
is `files/bin/wine` in that Proton tree. Starting the helper with the
|
||||
system Wine against a Proton server (or the reverse) fails.
|
||||
- **Do not use Protontricks' `WINELOADER`.** Protontricks points
|
||||
`WINELOADER` at its own proxy script (under
|
||||
`~/.cache/protontricks/proton/<version>/bin/wine`). That script needs
|
||||
the Protontricks session environment, exits without it
|
||||
(`Unknown PROTONTRICKS_STEAM_RUNTIME value` in the helper log), and
|
||||
would run the helper inside the Steam Runtime container, where the
|
||||
host's `/usr/libexec/wine-access` files and libraries are not visible.
|
||||
Resolve the real Proton loader from the process executable instead.
|
||||
- **Run the helper on the host, not in the container.** It links host
|
||||
GLib/GIO and XCB and must reach the reader on the session bus at
|
||||
`$DBUS_SESSION_BUS_ADDRESS` (usually `/run/user/<uid>/bus`). Inside
|
||||
pressure-vessel, games instead see that bus through a filtered proxy
|
||||
at `/run/pressure-vessel/bus`; that address identifies the same session
|
||||
but is not reachable on the host, so the helper must be given the
|
||||
reader's own bus address, not the game's. The game's `DISPLAY` and the
|
||||
server's sync mode (`WINEESYNC`/`WINEFSYNC`) must match the game's;
|
||||
copy them from a game process in the same prefix.
|
||||
|
||||
The Orca extension in this repository implements all of this. Cthulhu's
|
||||
supervisor needs the equivalent loader resolution in Cthulhu itself; until
|
||||
then, Protontricks-launched applications do not get a Cthulhu helper. To
|
||||
start the helper manually for a running game, use its Proton build and
|
||||
prefix, for example:
|
||||
|
||||
```sh
|
||||
WINEPREFIX="$HOME/.local/share/Steam/steamapps/compatdata/<appid>/pfx" \
|
||||
WINELOADER="$HOME/.local/share/Steam/steamapps/common/Proton 11.0/files/bin/wine" \
|
||||
WINEESYNC=1 WINEFSYNC=1 \
|
||||
/usr/libexec/wine-access/wine-access.exe
|
||||
```
|
||||
|
||||
(add the reader options from above for Orca). Flatpak builds of Steam or
|
||||
Protontricks are not supported: their sandboxes hide both the host helper
|
||||
installation and the game processes from the reader.
|
||||
|
||||
## Protocol and behavior
|
||||
|
||||
`nvdaController.idl` contains the compatible local RPC interfaces. The helper
|
||||
|
||||
Reference in new issue
Block a user