* fix: initialize Proton prefix before install scripts
* game-env: start Proton first only for a new prefix
* fix: wait for new prefix wineserver before seeding
* game-env: find wineserver in either Proton layout
* fix(steam): skip redist seeding when wineserver wait fails
* fix(steam): probe new prefixes only when Proton has no template prefix
* fix(steam): check the active Proton prefix template before seeding
* fix(steam): use effective environment for redist seeding
* fix(desktop): keep the bundled PipeWire paths out of Plasma so the desktop draws
* fix(desktop): let the screencast portal use KWin so Sunshine can capture the desktop
* fix(proot): /proc/<pid>/root reads as the guest root so portals accept callers
* fix(nativeguest): /proc/<pid>/exe of another guest program names that program, not the loader
* fix(nativeguest): trust another process's program only when it is mapped there, and read all of its environment
* fix(nativeguest): accept versioned glibc loaders, and wait for the test program to run
* feat: adopt game folders in added Steam libraries
* Share the appmanifest builder between steam-library and steam-games
* steam: load the shared compatibility module once per run
* Guard unreadable game folders during library adoption
---------
Co-authored-by: Kurt Himebauch <136133082+xXJSONDeruloXx@users.noreply.github.com>
* fix: move zram page-out off signal thread
* fix: drain pending zram requests
* Time the async and inline page-out runs on the same workload
* fix(zram): keep pageout worker responsive under load
* test(zram): synchronize signal delivery before fixture shutdown
* test(zram): compare matched single-request timings
* test(zram): correct single request timing control
* test(zram): calibrate single request timing together
* test(zram): fail the timed run when the acknowledgement never arrives
* fix(fex): supply current Wayland libraries in the shared runtime
* fix(fex): provide current FreeType runtime libraries
* fix(fex): fall back when provider links are broken
* fix(fex): require ffi for provider Wayland libraries
* fix(fex): keep Wayland cursor with its provider client
* fix(fex): preserve cursor compatibility and refresh runtime cache
* fix(fex): provide current GBM runtime libraries
* fix(rockstar): serve launcher pipes named by the executables beside a protected game
* fix(rockstar): skip unreadable executables beside a game instead of failing the launch
* test(rockstar): exercise case-insensitive sibling pipe name dedupe
* fix(rockstar): show the launcher service log in the session log after a Rockstar game exits
* fix(store): run the store exit hook when the session ends a store game
* fix(session): read the compressed client back when it is in front of a running game
* fix(session): keep the client compressed while focus is unknown
A missing or unreadable focus.json no longer counts as the client in front
of the game, so the readback timer starts only on a confirmed focus change.
* fix(session): invalidate focus snapshots after collection failures
* fix(session): retry focus snapshot publication
* fix(preload): Windows games run from noexec shared storage under every Proton
When mprotect(PROT_EXEC) on a private mapping is refused, libblsession
moves the pages into anonymous memory and retries, so Wine can make an
image's code sections executable on noexec mounts. FEX keeps its
existing handling.
* fix(preload): copy noexec image pages without faulting or dropping access
* fix(preload): install copied image pages with final permissions
Nexus moved its Xodus changes from patch files in xodus-nexus into a backend
fork (domsvoboda/nexus-backend, GPL-3.0). prepare.py now fetches that fork at
backend-v0.2.15 (e7884a27, same Xodus base 53ea781d, same Rust 1.99.0) and
applies the DroidDeck patches, rebased onto it:
- droiddeck-credentials, -launch-view, -library-subscriptions: same rebase as
Bannerlator's 0.2.15 update (identical patches before and after).
- droiddeck-credential-fallback, -credential-diagnostics: applied unchanged.
- droiddeck-cloud-token: session::prepare now also returns the account
snapshot; the ticket checks it like upstream's profile/social commands.
- droiddeck-licensing-device-ticket: upstream 0.2.15 already formats
delegation-compact device tickets for Store license tokens (27c335e), so only
the content licensing path is patched. Upstream now writes compact JWE
delegation tickets as t=, so the d= prefix check is replaced by the token
type, the same rule as upstream's store_license.rs.
droiddeck-xbox-ticket.patch is dropped: upstream sends compact JWE delegation
tickets to Xbox Live sign-in in a form it accepts, with tests.
Runtime: domsvoboda/nexus-runtime runtime-11.0-20261102-g76c6dd13 (was
xodus-nexus runtime-11.0-20261018). Same six modules at the same path;
xgameruntime.dll is the C++ implementation (nexus-xgameruntime 455b1ba9).
Archive sha512 from the release's .sha512sum, source sha256 from its
candidate.json, module sha256 from the extracted files. The PlayFab Game Saves
proxy is a newer build at the same path and still passes droiddeck-xbox's
export checks; its license moved to share/doc/nexus-runtime/.
DLC mounting: the C++ runtime mounts downloadable content only inside a
host-managed workspace named by XODUS_MOUNT_ROOT (src/System/Package/Mount.h
returns E_NOTIMPL without it). DroidDeck starts Wine itself
(droiddeck:prepare), so droiddeck-dlc-mount.patch (ported from Bannerlator)
creates the workspace in the launch directory for the prepare session and
reports it as mountRoot; XboxRuntime passes it in the xbox-prepare reply and
droiddeck-xbox sets XODUS_MOUNT_ROOT to its Z: path. XODUS_CONTENT_ROOTS is
unchanged and still read by the runtime.
Upstream fixes since the old pins include sign-in for some accounts, offline
play, cloud-save conflict handling, DLC mounting, duplicate token requests and
per-game fixes (Ori, AoE, MSFS, Forza Motorsport).
The session preload is also built for i386 and preloaded into every 32-bit
x86 program under FEX. There it aliased fstat64, ftruncate64, pwrite64,
fallocate64, posix_fallocate64, open64, openat64 and fcntl64 to their 32-bit
hooks, which on i386 take a different struct layout or argument size. fstat64
returned a size with garbage high bits, so libdbus rejected a valid 33-byte
/etc/machine-id as too large and aborted the program. The aliases now exist
only where off_t is off64_t; on i386 the 64-bit calls reach their own glibc
functions, keeping the open and lock hooks.
* fix(rockstar): ship the launcher service as an add-on pack, not inside the APK
* fix: ship the DiRT ws2_32 stand-in as an add-on pack and reject Windows executables in the APK
* fix(release): reject APK entries under a packed path even when the manifest omits them
* fix(dirt): fetch the ws2_32 stand-in pack once the Linux runtime is installed
* fix(desktop): serve PipeWire in Desktop mode so screen capture works
* fix(desktop): preserve shared PipeWire lifecycle
* test(desktop): exercise shared PipeWire lifecycle
* fix(desktop): start PipeWire for bottom sessions
* fix(desktop): serialize shared PipeWire bundle preparation
Concurrent Steam and bottom Desktop starts unpacked the bundle into the
same staging directory and rewrote the access settings together. Hold an
exclusive lock around unpacking and access configuration, and cover the
race plus start success and failure environment handling in tests.
* fix(desktop): replace PipeWire access fragments atomically
Write each fragment to a temporary file and rename it so running daemons and clients never read a truncated file.
* fix(desktop): isolate runtime directories in concurrent PipeWire start test
* fix: surface Battle.net's own reason when it refuses a game folder
watch() treated any "error": <nonzero> in the Agent's status JSON as fatal. The
install form carries nested errors of its own - language.error 704 when the
requested locale is not offered, game_dir.error when the folder is unusable - so
the loop ended before the install started and agent_job reported "exit 0".
A form with a non-zero game_dir.error now fails with that reason (800 reads as
"the game folder already holds a game"); otherwise the wait continues, and only
a top-level error still ends the loop.
* fix: move the form-failure regression out of the crowded test block
Keep the driver behavior unchanged; this only relocates the new regression case so
the branch can be merged with current main without a test-file conflict.
* fix: sync the agent-error change onto current main
Bring the two touched files up to the current main versions and apply the form
failure handling on top. This keeps the PR limited to the driver and its test
without pulling workflow files into the branch.
---------
Co-authored-by: visail <visail@users.noreply.github.com>
Co-authored-by: Kurt Himebauch <136133082+xXJSONDeruloXx@users.noreply.github.com>
* fix(game-env): keep DroidDeck's DLL overrides when a game sets its own
* fix(game-env): keep the game row when the merged DLL overrides pass 8192
---------
Co-authored-by: Kurt Himebauch <136133082+xXJSONDeruloXx@users.noreply.github.com>
* feat(performance): add idle zram compression toggle
* Gate the idle compression toggle on memory cap support and refresh counters first
* fix(zram): retain launcher reclaim when idle compression is off
* test(memory): verify launcher-only reclaim signals
* fix(performance): keep game reclaim when focus is unknown
* fix(performance): say when to turn idle compression off and that it applies on the next session
---------
Co-authored-by: Kurt Himebauch <136133082+xXJSONDeruloXx@users.noreply.github.com>
* fix(fex): the x86 runtime is built from files inside it so FEX finds its libraries
* fix(fex): the x86 runtime keeps the permissions of the directories it is built from
* fix(fex): rebuilding the x86 runtime refreshes the Steam client links and removes read-only trees
* fix(fex): rebuilding the x86 runtime removes old trees that contain unreadable directories
* fix(fex): isolate generated rootfs files
* feat(xbox): stage the PlayFab Game Saves save-folder proxy from the Nexus runtime
Xbox titles that use PlayFab Game Saves, such as Forza Horizon 6, stop with
"Initialization Failed" E:0-17 right after sign-in. The SDK's default provider
needs Gaming Runtime save APIs that xgameruntime does not have, and its
in-process provider needs a save folder the title never passes on Windows.
xodus-nexus already builds a proxy for this into the runtime archive we pin
(scripts/runtime-compat, MIT): it keeps the title's SDK as
nexus_pgs_native.dll, sets ForceUseInprocGameSaves and passes the
PersistentLocalStorage PlayFabGameSaves folder. runtime.py now takes it and
its license from the archive, checked against runtime.lock.json, and
droiddeck-xbox stages it before each launch when the game's
PlayFabGameSave.dll has exactly the SDK's 40 exports. A game update that
brings a new SDK replaces the kept copy; anything unknown is left alone.
Unlike Nexus, no DLL override is set for the two DLLs: Wine has no builtin of
either, and forcing them native-only made Forza Horizon 6 fail with E:0-0-4.
* fix(xbox): check the whole PlayFab export table and never overwrite an unknown kept SDK
The SDK and proxy checks now also require the export address table to hold
exactly 40 functions, so a DLL with the same names plus an ordinal-only export
is no longer taken for the SDK. Before copying a new SDK to
nexus_pgs_native.dll, an existing file there must itself be a regular file
holding the SDK; an unknown file or a link is left as it is.
* fix(game-env): keep x64 system DLLs that only x64 code loads in ARM64 prefixes
The foreign-architecture repair treated every plain x64 DLL in system32 of
an ARM64 prefix as broken and swapped in the ARM64 builtin. ARM64EC games
load x64 DLLs fine, so this broke native-only DLLs such as the Khronos
vulkan-1.dll loader (vulkan-1=n leaves Wine nothing to load) and native
runtimes that games depend on.
An x64 DLL is now foreign only when Proton's own ARM64 programs import it,
found from the import tables of the Proton build's ARM64 executables.
Prefixes the old rule already repaired get their native copy back. This
replaces the Visual C++ runtime name list.
* fix(game-env): keep the old rule when Proton's programs cannot be read, restore the newest backup across gaps
* fix(game-env): number new backups above the highest one, treat truncated import tables as unreadable
* fix(game-env): treat an import directory outside every section as unreadable
* fix(game-env): treat truncated data directories and section tables as unreadable
* perf(game-env): index foreign DLL backups per directory
* fix(game-env): count only ARM64 Proton programs as roots, cover x64 component DLLs across launches
---------
Co-authored-by: xXJsonDeruloXx <danielhimebauch@gmail.com>
* fix(game-env): turn off Proton's tabtip unless the Steam keyboard is enabled
Proton's tabtip only opens Steam's keyboard with SteamDeck=1, but it always
runs UI Automation queries inside the focused game, and those calls crash
games that answer them (Godot 4.5 AccessKit). Game launches now add
tabtip.exe=d unless SteamDeck=1 or the user's overrides name tabtip.
* fix(game-env): match WINEDLLOVERRIDES modules split by spaces and tabs
* fix(game-env): count only tabtip.exe entries with a load order as the user's own setting
* fix(game-env): count *tabtip.exe and tabtip.exe.dll overrides as the user's own setting
* test(game-env): cover keyboard overrides during sync fallback
* fix(epic): install the Epic Games Launcher from its Linux .deb
Epic no longer serves the Linux AppImage: the installer URL answers 404
errors.com.epicgames.launcher.app_direct_url_not_found (30003), so Install
failed for everyone. Epic now ships EpicGamesLauncher-x86_64.deb
(0.113.0+g2164614).
- The installer downloads the .deb, checks its ar magic and the CDN ETag,
and droiddeck-epic unpacks its data.tar.* member straight from the
archive.
- The .deb links WebKitGTK 4.1, JavaScriptCoreGTK 4.1 and GTK 3, which the
Steam Runtime 4 image does not ship. 32 Debian 13 amd64 packages, pinned
by SHA-256 and size (60.2 MB download, 201 MB unpacked), are unpacked
into the launcher's desktop/ folder (shared libraries only) and put on
its LD_LIBRARY_PATH. Debian 13 matches the runtime's own base, so only
sonames the runtime lacks are added. Each package falls back to
snapshot.debian.org when the deb.debian.org pool has moved on.
- WebKit starts its helper processes from its built-in
/usr/lib/x86_64-linux-gnu/webkit2gtk-4.1 path, so each launch links that
folder in the runtime to the layer's copy.
- An installed AppImage launcher keeps starting through its AppRun; the
next update check moves it to the .deb.
Closure checked offline: every ELF in the .deb and the layer resolves with
the runtime's own ld-linux-x86-64.so.2 inside a sandbox holding only the
runtime, the layer and libGLESv2 (0 missing, 0 version or undefined
symbol errors with LD_BIND_NOW).
Based on zooluis's research in #2268.
Co-authored-by: zooluis <150430329+zooluis@users.noreply.github.com>
* fix(epic): provide desktop GLib data paths
* fix(epic): keep archive symlinks from redirecting the desktop layer and icon
---------
Co-authored-by: zooluis <150430329+zooluis@users.noreply.github.com>
With a single GPU heap DXVK reports the whole heap as shared memory too, so games still saw ~8 GB as shared even with the cap on. Set dxgi.maxSharedMemory to the same value, like BattleNet already does.
Co-authored-by: Tapuuk <177422350+Tapuuk@users.noreply.github.com>
* fix(battlenet): a Battle.net download that stops moving ends as retryable, and a killed update comes back as an update
A job reply without a state or byte counts no longer counts as a started
download, and an Agent job that reports no change for ten minutes is
stopped with its Agent and fails with a Retry instead of waiting forever.
Updates remember their game folder in the saved queue, so one restored
after the app was closed runs agent-update on that folder instead of a
fresh install.
* fix(battlenet): a stalled job stops only the Agent it started
A game or Battle.net client running in the prefix keeps running when a
stalled Agent job is ended, and the progress test keeps the job alive
across polls with a controlled clock.
* fix(battlenet): only real progress holds off the stall timeout
The download rate and time estimate can change while no bytes move, so
the stall timer now resets only on byte counts, progress, state, phase,
pause or error.
* test(battlenet): bound the stalled-rate fake child's polls
* fix(session): the Steam UI on the Mali bridge stops flickering
On the Mali bridge Steam's own web helper layout makes the Deck UI footer
and overlays flicker (Mali-G78 MP14). When the browser UI is on the GPU,
default to ANGLE on Vulkan without Chromium's Vulkan compositing. Values
set by the user still win, and the software UI path is unchanged.
* fix(session): keep empty Mali bridge CEF settings as set
With "Run without proot" on, the Steam client hung about a second after
login and aborted three minutes later with "fatal stalled cross-thread
pipe". The directory cache holds its lock while it adds an inotify watch.
Without proot that call reaches the native userland hook, whose
inotify_add_watch creates a missing directory with mkdir() by name. That
mkdir resolves to the cache's own wrapper, which waits for the same lock
on the same thread. Steam's IPC threads then queue behind it.
The cache now counts the locks each thread holds. While a thread holds
one, calls that come back into the cache (opendir, the change wrappers,
created files, missing-name checks, closedir of a stream it did not open)
go straight to the next library. The same guard covers the hook's
remove(), which calls unlink() by name while the cache's remove wrapper
holds its operation lock.
* Stop searching whole libraries on every game launch and session start
The install script search ran over every library whenever any game's
manifest changed, and again on each launch. It now runs per game, only
when that game's build changes, and a launch that names its scripts
does no search at all.
A store game's shortcut walked its install folder on every scan instead
of reusing the ranking the scan keeps.
* Search a library for install scripts after the session has started, not before
* fix(session): keep deferred seeding off a running prefix and recheck old folder caches
* test(session): bound the held library search in the deferred seeding test
* fix(session): search a game again when its install script search failed
* fix(steam): share the Steam app's prefix with shortcuts of the same install
* fix(steam): prefer the matching install's save prefix
* fix(steam): tolerate an unreadable library when linking a shortcut prefix
A library folder that cannot be listed made the shortcut writer exit, so no added game was registered.
* fix(steam): repair a dangling shortcut prefix link and keep Steam library installs to their own prefix
* fix(steam): only change shortcut prefix links the importer created
* fix(steam): record a prefix link only when the importer created it
* fix(desktop): run a store game's exe through its launcher so the EA environment and Origin process are set up
* fix(desktop): keep a store game's prefix and resolve its launcher through symlinks and deep folders
* fix(desktop): keep the exe's resolved compatdata folder when running its launcher and find the sidecar beside a symlinked exe
* fix(game-env): the VRAM cap also applies to D3D9 games
DXVK's D3D9 frontend ignores dxgi.maxDeviceMemory, so set d3d9.maxAvailableMemory to the same cap.
* fix(vram): leave DXVK's lower per-game D3D9 limits in place above the 4096 MiB default