thread_robust_head() read the candidate list heads with process_vm_readv(getpid()).
In Wine games run without proot, and in any process whose first thread has exited,
that read fails with ESRCH, so the emulated get_robust_list answered ENOSYS and
Steam's arm64 gameoverlayrenderer.so aborted the game ("futex robust_list not
initialized by pthreads"). The read now goes through gettid().
* docs: research Android's child-process limit without developer options
* docs: confirm the child-process gaps on the Thor
* feat(session): start long-lived daemons in uncounted worker processes
* feat(nativeguest): hand long-lived programs to uncounted worker processes
* test(session): run the session bus block with dd_spawn
* test(nativeguest): cover the exec handoff's wait and kill
* feat(session): run the session root, its jobs and the gamescope chain outside the child-process count
* feat(setup): the child-process limit no longer blocks Steam while the session runs in workers
* feat(audio): run PulseAudio outside the child-process count
* feat(nativeguest): hand off posix_spawn children and keep handed-off daemons alive
* fix(nativeguest): let Steam end a handed-off game and keep process-group signals
* perf(session): exec a worker as soon as its reply is in and keep two bound ahead; fix review findings
* fix(nativeguest): address review findings in handoff waits, signals and spawn errors
* fix(session): commit each worker launch explicitly and keep workers with the session that asked
* fix(session): let a worker wait for its launch commit on the main thread
* fix(session): confirm handoffs, honour wait selectors and stop spawns at teardown
* fix(session): one owner per handoff exit, worker launch answers and spawn edge cases
* fix(session): send a working directory outside the program's root by its real path
* fix(session): recheck a taken exit's child and commit a launch only on a whole go line
* fix(session): three-step launch, tagged exit reports and lock-free popen and system children
* test(native): popen test shell is static, as the other hook fixtures
* test(native): run the popen test program with a clean environment
* test(native): skip the popen test where a spawn child cannot exec aarch64
* fix(session): confirm the hook before the worker runs, prefer a late report and free a reused pid
* fix(session): tell a reused pid's old entry by start time, not the reaped flag
* fix(session): silent failed launches, bounded spawn requests and held check-gone writes
* test(native): check the unlisted child's status only where a child can exec aarch64
* fix(session): every exit-only waitid goes through the handoff wait
* fix(handoff): exact waitid events, safe exit timer, bounded request receipt
* feat(handoff): hand off shell children near Android's process limit
* fix(agent): tag handed-off game windows outside the reaper
* fix(handoff): a handed-off program's getppid() is its forking process
* fix(handoff): exact waitid selection, kept Steam and pipe readers, held reports
* fix(handoff): getppid() gives init for an exited or replaced parent
* fix(handoff): keep __WALL waitid calls on the handoff path
* test(handoff): require a zombie parent in the unreaped-parent case
* fix(handoff): honor __WNOTHREAD and check every argument for Steam
* fix(handoff): stop waiting on a held entry once its parent has exited
* fix(handoff): __WNOTHREAD on waits for a pid, flags on every shim reap
* fix(handoff): keep the forking thread of each child in the parent
* fix(handoff): a wait that finds no child rechecks live handoffs
* fix(handoff): keep a child's forking thread until its end is taken
* fix(handoff): the thread selector applies to claims in progress too
* fix(handoff): controlling-terminal check via /dev/tty, owned records only
* fix(handoff): a child whose forking thread ended is any thread's
* fix(handoff): a parent /proc cannot read is checked with kill(), then given up
* fix(handoff): one-word fork records, changed only by compare-and-swap
* fix(handoff): watch the forking parent through a pidfd opened at start
* fix(handoff): fork records by pid, a gone thread's children go to the main one
* fix(handoff): keep the parent pidfd through dup2 and check it before use
* fix(handoff): no handoff without fork records, unknown thread state keeps the owner
* fix(handoff): undo a pidfd move when dup fails, recheck it after the poll
* fix(handoff): fresh fork records in a forked child, heir is the first live thread
* fix(handoff): one lock over a pidfd move, its dup and the undo
* fix(handoff): liveness check under the pidfd lock, forget only a reaped pid's record
* fix(handoff): lock only dups onto the pidfd, with signals blocked
* fix(handoff): fork record generations, no pidfd restore after a failed move
* fix(handoff): every dup in a pidfd process locks, fork prep blocks signals
* test(semaphores): tell a child hung in qemu-user from a guest deadlock
* fix(handoff): fork records matched by the child's start time, never removed
* test(semaphores): count only reaped children, only futex waits as emulator stalls
* fix(handoff): a known-start bit in fork records
* fix(handoff): dup bookkeeping before the pidfd lock, newer fork records kept
* fix(handoff): a fork record stays only for the pid's current process
* fix(handoff): keep a pending child's fork record when an older fork records late
* fix(handoff): an unknown-start fork record never replaces a pending one
* fix(handoff): self-recorded forks, ELF and wait option checks, both nofile limits
* test(handoff): find the module in the namespace run under discover too
* fix(handoff): a spare parent pidfd made at start, so a dup2 onto it makes no fd
* test(handoff): require ENOEXEC for an ELF stub; skip the namespace run without binfmt
* fix(hook): change the kept fd list under a sequence lock; readers take a copy
* fix(handoff): one report per handed-off child; stops keep a claim; nested waits keep their selector
* fix(hook): a table made at runtime outlives closes begun before it; unknown-start fork records kept
* fix(handoff): waits look before they reap, so a handed-off fork's child is never reported
* fix(hook): settle waits out earlier epochs; unknown-start fork records kept for any handoff under way
* fix(handoff): generation-checked reap marks, stops taken as stops, close counts reset in a fork
* fix(handoff): one given-up table at most, whole stop codes and rusage, WNOWAIT exits rechecked
* fix(handoff): requests name their session; stops of handed-off programs reported; cancellable look
* fix(handoff): table setup not cancellable; test spawner never runs what it cannot end
* fix(handoff): job-control jobs stay counted; unnamed requests refused; cancel-safe setup
* docs(phantom): job-control jobs stay counted; listed programs report no stops
* fix(handoff): a listed program a shell runs as a job-control job stays counted
* refactor(hook): kept descriptors in their own part, a handoff matched by another program
The descriptors close(), close_range() and closefrom() leave open move from
privileged.c to hook/kept.c (unchanged), so the bionic runtime's exec shim can
build the handoff with them. ddh_try_as() matches DD_HANDOFF against one
program and sends another: the bionic shim sends "/system/bin/linker64 PROGRAM
ARGS" and lists it by PROGRAM. ddh_try() is ddh_try_as() with both the same.
* feat(bionic): hand the bionic runtime's Wine programs to the app's workers
The glibc session's hook never sees DroidDeck-Bionic's processes (Wine on
Android's libc), so a bionic game's Wine programs all stayed counted under the
worker running the tool's launch.sh. The handoff is now built into the
runtime's exec shim (tools/bionic-runtime/handoff.c, part of libexecshim.so):
- hook/handoff.c and hook/kept.c with what the native hook's other parts do
around them: fork(), close(), close_range(), dup2(), dup3(), and exit() for
the on_exit() bionic lacks
- bionic's execv(), execvp(), execl*() reach the execve system call inside
libc, past execshim's execve(); Wine starts its preloader with execv(), so
the shim defines them on top of its execve()
- a linker64 start is listed by its program
- the app starts a handed-off program from the glibc root's bash, which cannot
load the runtime's LD_PRELOAD/LD_LIBRARY_PATH: they go as arguments of
/system/bin/env, which puts them back for the program
- launch.sh keeps DD_SPAWN, DD_SPAWN_SESSION, DD_HANDOFF*, DDH_* and
DDNATV_ROOT, and its /proc/N/environ reads no longer print "Permission
denied" for idle workers (2>/dev/null before the redirect)
Pocket FIT, DroidDeck-Bionic 14.1-r67 with this shim and launcher, handoff on:
counted during Brawlhalla 25 -> 17, DiRT Showdown 24-27 -> 16, whole run
28 -> 19-20; with Android's limit on no DroidDeck process and no other app's
process was killed (before: Discord, BatteryLog helpers); DiRT 75 fps either
way. docs/phantom-processes.md: "The bionic runtime".
* fix(bionic): hand off only starts that would succeed here; bionic's execvp fallbacks
Review follow-ups on the bionic runtime's handoff (tools/bionic-runtime/handoff.c):
- A start is handed to a worker only when it would get past execve() in this process: the file is a
regular executable outside the app's data (Android refuses execve() there), and for a linker64 start
the program it loads is a readable regular file. A start that failed in the worker failed where the
caller could not see it, so Wine never tried its next candidate. The hook's own check looked at
/system/bin/env, not the program.
- A start whose argv[0] is not its file stays here: env starts FILE with FILE as argv[0]. linker64 and
interpreter starts are unaffected (their argv[0] is the file). An empty argv stays here too.
- Nothing is built for the handoff without DD_SPAWN and DD_HANDOFF.
- execvp()/execvpe()/execlp() follow bionic's: an unset PATH is libc's default, an empty PATH or entry
is the current directory, and a file the kernel cannot start (ENOEXEC) runs under /system/bin/sh.
- close_range() refuses first > last and unknown flags before it splits the range or unshares the table.
- The debug line reads the table's owner only once the table is seen published.
* fix(bionic): hand off app-data starts only where SELinux lets them run; bare names stay here
Follow-up to 7d95564f7 (review, and a Pocket FIT test of its pack):
- 7d95564f7 kept every start of a file in the app's data here. Wine's preloader is one (a static ELF,
so execshim.c cannot make it a linker64 start), and where SELinux is permissive, as on AYANEO's
firmware, it runs: Wine then never reached its loader, and its programs ran here, counted again
(Pocket FIT: Brawlhalla 26-28 counted vs 16-17 before). Where SELinux enforces, Android refuses the
exec, here and in a worker alike, and Wine falls back to its loader, which goes as a linker64 start.
Such a start is now handed off when /sys/fs/selinux/enforce reads 0, and stays here otherwise
(also when the setting cannot be read).
- The program a start would run is checked with the hook's own ddh_startable() (an ELF the kernel
loads with its interpreter there, or a script with its interpreter): for a linker64 start, the
program it loads.
- A file name without '/' stays here: env would look it up in PATH, the exec here in the caller's
working directory.
- execvpe() skips a PATH entry whose candidate exceeds PATH_MAX (ENAMETOOLONG) instead of copying
it onto the stack.
* fix(handoff): spawn blocks signals and cancellation across the fork; root flag stored under the stop lock
* fix(handoff): a thread that unshares its fd table keeps its own copy of the kept fds
* fix(handoff): register the kept list's fork handlers before a split takes its lock
* test(handoff): cover WNOHANG with a held forked child, early reaps, blocked waitid and pidfd parents; keep the counted-process exception in translations
* test(handoff): exited-entry precondition, atomic checkpoints, a pidfd-only zombie check; validate the shim hold fd
* test(handoff): WNOHANG with two handed-off children and for a group; a program's exit while its entry is held
* test(handoff): a held exit with no free fd, with and without the parent's pidfd
* test(handoff): held-exit tests require the program's own exit status
* test(handoff): time held exits from the run, and only once the program is at its exit
* perf(handoff): keep the asker's priority, quick tools local, workers bound ahead of a game (#3582)
Three fixes that bring handoff-on speed to within 1-2 % of handoff off
(AIO D3D11 same session: 3196 -> 3520 fps, 1 % low 444 -> 637) with the
same counted processes (benchmark mean 18.5, peak 23):
- A handed-off program keeps its asker's priority. Workers are bound
from the top app with BIND_IMPORTANT, so Android boosts their main
thread to THREAD_PRIORITY_TOP_APP_BOOST (-10); the program the worker
execs inherited it. The asker's nice value is sent with the request and
set before execve, and a watcher resets it if Android boosts it again.
- Quick script tools (awk, sed, grep, cat, ...) stay where they are when
the count is near the limit. Sent to a worker, the forked child waits
(counted) while a worker starts; run locally it is counted for a few ms.
- Workers are bound ahead when a Steam game is queued (16 for 20 s), so
Wine's services do not wait on zygote forks at game start.
---------
Co-authored-by: The412Banner <[email protected]>
Co-authored-by: The412Banner <[email protected]>
* feat(native): run the desktop, its apps and shells as an ordinary user instead of fake root
* fix(native): a script's interpreter takes DDNATV_BECOME, so sudo runs scripts as root
* fix(desktop): keep the Plasma start line the pipewire tests slice the script at
* fix(battlenet): an install folder chosen in Battle.net on the library's drive is kept
Every open set Battle.net's default install folder back to the library folder whenever the two differed, so a folder the user picked in Battle.net on the same drive was replaced on the next open. The folder is now only moved to the library when it is unset, missing, or on another drive.
* fix(battlenet): check the trimmed folder against the rootfs drives
Since each pad was described to Wine's udev backend with the identity its
SDL backend sees, the udev backend left every pad to SDL. Where SDL does
not open the pad, such as a session without proot, Windows games lost both
the gamepad and the on-screen controls.
The udev backend owns the pads again with the Steam Input identity it had
before. SDL inside Wine's bus driver now reads the same identity for those
pads and skips them as it skips any Steam Input pad, so each pad is still
listed once and both triggers keep reading together.
* fix(steam): mark ARM64-uninstallable tool dependencies installed
The ARM64 client cannot install Proton EasyAntiCheat Runtime (1826330),
which it refuses as an invalid platform, or that tool's Steam Linux
Runtime 1.0 (scout) dependency (1070560), which has no ARM64 depot. After
the EULA hand-off the client starts the dependency install and aborts in
glibc's smallbin check.
Write the bare installed manifest DroidDeck already uses for adopted games
for those two tools before the client starts: only on the ARM64 client,
only when appinfo shows no ARM64 depot, and never over a fully installed
manifest.
Refs: ValveSoftware/steam-for-linux#13937, DroidDeck #2313
* fix(steam): seed a tool only when no library has it installed, and write manifests atomically
A partial manifest in the first library no longer hides a full install in
another one, and a failed write leaves no truncated or stray manifest.
* fix(steam): publish tool manifests without replacing concurrent installs
* fix(desktop): Log Out returns to DroidDeck, Return to Gaming Mode opens Steam
Both ended Plasma through the same logout call and the desktop script always
started Steam afterwards. Return to Gaming Mode now leaves a request that the
script reads; a plain Log Out ends the desktop. The app ships the shortcut
with the script so both always change together.
* Wait for the logout reply so a cold Shutdown service still gets the request
* Forget the return to gaming mode when the logout request fails
* fix(input): each pad is listed once in Windows games so both triggers read together
A pad that Wine's SDL backend also reads was described to Wine's udev
backend as a Steam Input virtual pad, so Wine built two devices for one
pad. SDL RawInput games could not match the two and read held triggers as
released. The pad now keeps the identity the SDL backend sees unless that
backend is told to skip it.
Rumble that Wine starts through SDL is now held until the next update,
matching the udev path, instead of stopping after one second.
* fix(input): hold only the rumble Wine starts through SDL, not later SDL rumble in the same process
* fix(input): read @file SDL ignore lists when choosing the pad identity
SDL reads the ignore and except lists from a file when the value starts
with @. Match the ring pad ID against that file's contents too.
* fix(input): parse SDL controller ID lists the way SDL does when choosing the pad identity
* fix(game-env): resolve store launcher executable from sidecar
Store titles launched through .droiddeck-launch.bat passed the wrapper
path directly into engine_fixes and other exe-based checks, so stem
checks saw .droiddeck-launch and game_files scanned from the install
root rather than the executable's folder. For Epic's Batman: Arkham
City, Binaries/Win32/BatmanAC.exe sat one level deeper than game_files
scans, so arkham_city_x87 never set FEX_X87REDUCEDPRECISION=0.
Resolve .droiddeck-launch.bat to the validated exe entry from
.droiddeck-store.json when inspecting the game, while keeping the
launcher path in the Proton command.
* fix(game-env): reject parent segments before normpath in store_game_exe
os.path.normpath lexically collapses symlink/../file before the
filesystem is consulted, which could validate a different file than a
symlinked subdirectory path denotes. Reject any ".." path component
after separator normalization before calling os.path.normpath.
---------
Co-authored-by: sergeymetallic <[email protected]>
* fix(game-env): run Inno Setup installers with the FEX Stability settings
An Inno Setup installer added as a game stops with Wine's "Path not
fpund." dialog under the default FEX preset. The 32-bit setup stub
corrupts its own paths before it opens its archive (#1277, #3067). #1174
avoids the stub only for GOG installs, by extracting them natively.
droiddeck-game-env now finds the stub by the setup loader's offset-table
ID in its resources, or the "Inno" marker older loaders keep at 0x30, and
launches it with the Stability preset's FEX settings. A FEX preset chosen
for the game itself still wins.
Fixes#3067
* fix(game-env): name only the preset seen to corrupt Inno Setup paths
The launch note and the docs said the faster presets corrupt the setup
stub. Only the default Performance + TSO preset was seen doing it.
* fix(game-env): give Inno Setup installers started with run the Stability settings
The run verb skips engine_fixes and gets only the sync settings, so an installer started that way kept the inherited Performance + TSO preset. Apply the Stability values on that path too; explicit game settings still win in apply_config.
* fix(game-env): keep the game's own FEX settings for installers started with run
The run path filtered the game entry down to sync keys, so a FEX preset
chosen for the game was replaced by the installer's Stability settings,
and a null could not unset a preset key. Copy the game's Stability FEX
keys into the synced config before applying it, so the game's own
settings still win on every launch path.
---------
Co-authored-by: Kurt Himebauch <[email protected]>
* fix(desktop): apps built on Qt's web engine start in the desktop and from AppImages
The desktop runs as root, and Qt WebEngine refuses to start as root with its
sandbox on, so Help Center and any other QtWebEngine app exited at once. Flatpaks
already had the sandbox off; the desktop and the AppImage runner now set it the
same way they turn off Firefox's sandboxes.
* fix(desktop): Software Sources and the driver manager open
software-properties-qt imports PyQt6.uic and UbuntuDrivers but does not depend
on the packages that ship them, so both tools died with an ImportError on the
installed-without-recommends desktop. The desktop package list now carries
pyqt6-dev-tools and ubuntu-drivers-common.
* docs: bottom screen research and proposals
* docs: expand bottom screen region mirror, guides and companion API
* feat(bottom): idle home card, per-game panel memory, Steam achievements tab and screen off
* feat(bottom): quick tiles page on the dashboard
* feat(bottom): Steam guides tab with per-game reading position
* feat(bottom): companion page with Stardew, Skyrim and Fallout 4 adapters
* docs: bottom screen implementation status
* feat(bottom): mirror a region of the game picture on the bottom screen
* fix(bottom): follow Steam's selection for any game, composite while mirroring
* docs: bottom screen hardware results and screenshots
* feat(bottom): guides wiki, fixes, maps and saved pages; hide mirrored region on top
* feat(bottom): guides, mirror and companion as their own panels in the app's settings style
* feat(bottom): Steam's Quick Access menu as a bottom screen panel
* fix(bottom): park Steam's Quick Access through its own bounds and keep it open on a lease
* feat(bottom): align Quick Access left, centre or right; keep its tab and Decky working
* fix(bottom): quieter Quick Access move handles, instant reopen, Decky tab after a cold start
* fix(bottom): lay Quick Access out at the panel's shape so every tab keeps one size
* feat(bottom): Quick Access tabs fill the bottom screen
* fix(bottom): the Quick Access button still opens the menu on the top screen
* feat(bottom): choose Quick Access layout from the bar: full width, left, center or right
* feat(bottom): brightness slider for the bottom screen with screen off at its end
* feat(bottom): game art panel, hideable bar with a pull tab, direct guide links, centred guide tabs
* fix(bottom): mirror fills the panel, options open from the bar
* docs: drop the removed dashboard row screenshot
* refactor(bottom): split the companion panel into its own change
* fix(bottom): Steam dialogs take input over the parked Quick Access menu; review fixes
* fix(bottom): extract the Quick Access relay at session start; second review round
* fix(bottom): game art refreshes details for the same game
* fix(bottom): Quick Access retries back off; art never shows another game for the running one
* fix(bottom): Quick Access keeps its lease through retry backoff
* fix(bottom): renew the Quick Access lease apart from discovery
* fix(bottom): a Quick Access panel releases only its own lease
* fix(bottom): an older Quick Access panel cannot take back a newer panel's lease
* test(bottom): an expired Quick Access lease can be taken by any panel
* fix(bottom): only the Quick Access lease owner sets the menu's shape
Read process command lines in one call in the zRAM watcher
The watcher read every /proc/<pid>/cmdline one byte per system call, costing about 390 ms of CPU per scan every 5 s (every second under memory pressure). mapfile reads in blocks and yields the same argument list, cutting a scan to about 17 ms.
Links made in a proot session store the guest path as their target, which the
kernel cannot follow in the middle of a path once the session runs without
proot: the folders listed, but nothing inside them could be opened or created.
The desktop setup now makes a link again when it cannot be walked into, so it
is stored in the form the current mode follows.
* fix(fex): x86-64 programs on Wayland render on the GPU
* fix(fex): address review on the Wayland and EGL thunks
Keep the GLES overlay on the 64-bit EGL thunk only, filter EGL extensions
whose entrypoints the guest lacks, accept EGLDeviceEXT displays, make the
Wayland display check thread-safe, bound event signature copies, reject a
second listener without freeing the first and guard wl_array_add growth.
The FEX updater now removes thunk libraries a new build no longer ships, so
an older 32-bit Wayland or EGL thunk cannot be enabled by the new config.
* fix(fex): check every EGL extension entrypoint and every host device
EGL_EXTENSIONS now hides an extension unless the guest exports all of its
entrypoints, using a table built from the EGL registry. eglGetDisplay asks
the host for its device count before matching EGLDeviceEXT handles.
* fix(fex): pick the eglGetDisplay platform the way Mesa does
A legacy eglGetDisplay handle now follows EGL_PLATFORM or EGL_DISPLAY first,
then Wayland detection, and only then the X11 mapping, so device handles no
longer depend on enumerating host devices.
New Steam setting "Valve Proton only when needed", on by default. While it is on and DroidDeck-Proton has not been removed by the user:
- the app installs DroidDeck-Proton before the client first starts instead of seeding Valve's Proton Experimental (ARM64) (2.09 GB on disk, 398 MB download); a stop request cancels that download
- the session no longer asks the client for appid 4427310 at every start
- the live helper fetches it only once the default or a title is set to a tool built from it ("Proton Experimental ARM64 (Compatible)"), or while no DroidDeck-Proton build is installed
FEX and the Steam Linux Runtimes are still fetched as before. An installed copy of Valve's Proton is kept and updated. Off, or with DroidDeck-Proton declined, everything works as before (DD_VALVE_PROTON=1). Fresh install on a Pocket FIT: 8.28 GB after first Steam start and tool downloads, was 10.4 GB.
* Unlock ProgramData entries a stale Windows owner locked
Wine builds the user SID from /etc/machine-id and the uid it runs as.
When either changes, descriptors stored in user.wine.sd keep the old
owner, and the next DACL change maps to mode 000 because no ACE matches
the token. Wine then cannot open the entry, so programs such as
Battle.net cannot repair their own folders.
Before each launch, clear stale local user owners under ProgramData and
give owner access back to entries they locked.
* Heal a locked ProgramData itself and keep read-only folders
* Serialise the ProgramData heal per prefix
* Launch even when the ProgramData owner check fails
* Read the machine ID as bytes the way Wine does
* Parse a signed machine ID the way Wine does
* fix(flatpak): file dialogs and forwarded descriptors work in Flatpak apps
Flatpak apps opened from the desktop could not open files: the file
chooser's result went through a document store that cannot mount on
Android, and image loaders started with flatpak-spawn --forward-fd lost
their D-Bus descriptor because the app relaunches sandboxes and only
stdio survived.
- A session document store hands picked files and folders back in place
instead of failing without a mount.
- The bwrap shim offers its inherited descriptors once over a private
socket, and the native hook puts them back on their original numbers
before the program starts.
- The native hook resolves /proc/<pid>/root paths to the other
process's sandbox, so xdg-desktop-portal reads .flatpak-info and
identifies the calling app.
* fix(flatpak): check documents against the app's view and harden fd forwarding
The document store hands a picked file back in place only when the
calling app's own sandbox can open it with the requested access, so
paths the app cannot see are refused instead of handed out broken.
/proc/<pid>/root lookups follow links inside that process's view,
duplicated root descriptors keep their mapping, and close_range drops
stale records. Forwarded descriptors survive targets at the fd limit,
truncated offers are ignored, and the shim refuses more descriptors
than one message can carry.
* fix(flatpak): match picked documents by file identity and keep O_NOFOLLOW on process roots
The document store accepts an in-place path only when the app's view
holds the same file (device and inode) as the picked descriptor, and
reads each process root once. A bare /proc/<pid>/root opened with
O_NOFOLLOW is no longer mapped, so it fails like the kernel's link.
* Keep a trailing-slash process root translated and track only directory roots
* fix(battlenet): drop the unused runtime drive and list its games under the runtime path
* fix(battlenet): read product.db paths decoded and keep alias-saved folders
* fix(battlenet): keep drives for paths that climb out of the runtime
* fix(battlenet): keep a drive referenced with any separator spelling
* fix(battlenet): check decoded config values before dropping a drive
* fix(battlenet): games installed inside the runtime stay listed after a native session
* test(battlenet): expect the shared folder for a lone Forever install
---------
Co-authored-by: Kurt Himebauch <[email protected]>
Co-authored-by: maxjivi05 <[email protected]>
fix(preload): keep libudev loaded while the input wrappers use it
Programs that close libudev and open it again crashed in the next wrapped
udev call: the wrappers kept function pointers into the unmapped copy.
Pin libudev with RTLD_NODELETE when it is opened so those pointers and
the stored handle stay valid.
* fix(desktop): a Kubuntu-default panel gets the SteamOS layout and launcher icon
* fix(desktop): lay out Plasma's stock panel with the SteamOS pins, once, over an older panel
* fix(desktop): keep Plasma's wide-screen cap and input-method panel in the SteamOS layout
* fix(desktop): stamp the panel layout only after the old panel is backed up, never over a backup
DroidDeck-Bionic: a Steam compatibility tool that runs the game itself on Android's libc (bionic) instead of glibc inside proot. Steam, the stores and the session stay on DroidDeck's Linux side; only the game process leaves proot.
- Listed in the Proton list only when Run without proot is on, in its own row. Its builds are pre-releases on Droid-Deck/DroidDeck-Proton (DroidDeck-Bionic-12.8-rNN, runtime built by .github/workflows/build-bionic-runtime.yml from tools/bionic-runtime); the app installs and updates them like the other extra tools and never makes one the default unless the user picks it.
- With proot on, a launch sent to a bionic tool goes to the newest DroidDeck-Proton (picks stay as set).
- ProtonExtras / ProtonMenu / ExperimentalProtons / droiddeck-proton-extra: bionic pre-releases checked and listed only without proot; updates carry the default and per-game picks over; deleting a tool never follows links out of it. ProtonDefault: picks left on an older bionic build move to the installed one.
- Components: FEX builds for bionic (bionic-stable on DroidDeck-Components); each tool is offered only the FEX builds that fit it.
- Session logs: the bionic game log and its graphics logs are part of Share logs.
Synced with main twice before the merge (latest sync fbed69ce on main 67b82ad9; Build APK and validation green); a local trial merge on main 3e1fc3e6 had no conflicts and the game-environment, Proton-extra and store-launch tests pass.
* fix(ea): a failed touchup is retried and its output reaches the store log
* fix(ea): bound the touchup output kept for the store log
The output goes to a temporary file and only its last 64 KiB are read back. The timeout test now checks the output is logged and the next launch retries.
* fix(ea): a touchup still runs when its output cannot be captured
* fix(library): keep another program of a Steam install out of the Steam app's route
* fix(library): cover a Steam-edited target in the unrouted-program test and docs
* fix(library): keep Steam-edited targets routed and release stale Spacewar imports for other programs
* fix(library): keep Steam-edited targets adopted before the marker existed routed
A saved executable and seen revision without the adoption marker are recognised
from the Steam shortcut record (its target is the current executable and differs
from the one the app asked for), and the marker is stored.
#2958 reverted the controller redesign and its follow-ups, and #2946 was
in that list, so streaming_client lost the real libudev again. #2963
brought back #2942 but not #2946. With the session's udev answers,
SDL3 in streaming_client hands a virtual pad's handle to the real
udev_device_get_driver and crashes about a second after it starts.
streaming_client in steamrtarm64/steamrt64 keeps the real libudev again,
like the Steam client. The no-driver answer for pads that #2946 also
added is left to #2915, which covers every device call.
At the game's default monster mesh detail, slimes show only their tips.
Set the two skeletal mesh detail values in Engine.ini before each launch,
in the prefix the game profile selects, and keep the file's permissions.
The game ignores -ini: overrides and deletes a writable Engine.ini after
reading it, so a launch argument or a one-time write does not work.
* fix(desktop): Plasma draws on the system PowerVR driver
KWin lacks the Android-buffer Wayland protocol the system PowerVR driver's
swapchain needs, so every Plasma client failed with "zink: could not create
swapchain" and the desktop stayed black under the cursor. Plasma's clients now
present through DRI on that path, as the Steam session already does.
* test(desktop): the kopper override reaches Plasma's child processes
* test(desktop): check the kopper override where Plasma launches
---------
Co-authored-by: Jacob Lambert <[email protected]>
PRoot's link2symlink resolves /usr/bin/env to a `.l2s.env….` stub and the
guest's uutils coreutils multicall refuses that name:
Security violation: Requested utility 'env' does not match executable
name: /usr/lib/cargo/bin/coreutils/.l2s.env0001.0116
Every exec of these five scripts therefore dies with GUEST_EXIT 1 before
Python starts, 20-60 ms into the session. They are droiddeck-diagnostic-
inventory (the session's first child), droiddeck-desktop-bookmarks (the
desktop's bookmarks refresh), droiddeck-ime, droiddeck-steam-games and
droiddeck-steam-shortcuts.
The absolute interpreter is what the other payload scripts already use,
and the guest runtime installs the python3 package (tools/ubuntu/
packages-runtime.txt), so /usr/bin/python3 exists in the rootfs.
Only the tracked overlay copies change: app/src/main/assets/linuxfs is
generated by the stageSessionScripts Gradle task, so the asset copies
follow from the overlay.
Co-authored-by: Pablo González <[email protected]>
Co-authored-by: Kurt Himebauch <[email protected]>
dd_descriptor_unlink, dd_descriptor_rmdir and dd_descriptor_rename put
one or two PATH_MAX buffers on their own frame (12 KB, 24 KB), and
dd_status_without_tracer put its 16 KB status buffer there, even on the
common path that only calls through to libc. Threads with small stacks,
such as .NET or Wine threads near their guard page, could overflow in
an otherwise plain unlink, rename or open.
The wrappers now do only the cheap checks and call the real function;
the buffers live in noinline helpers that run only when the descriptor
store or the status rewrite is actually needed. A test compiles both
sources with -fstack-usage and keeps each wrapper frame under 1 KB.
Co-authored-by: Kurt Himebauch <[email protected]>
* fix: a Steam target whose file is gone goes back to the app's exe
A shortcut Target edited in Steam is kept across the client's restart on
purpose, but it was kept even after the file it names disappeared. When the
app's own exe already equalled the recorded proposal, nothing replaced the dead
target: Steam started `System/launcher.exe`, Wine answered
`err:steam:run_process Failed to create process ...: 2`, and the game never ran
(#694, after #1644 and #2022 removed the two real causes).
The merge now treats a target that is not a file as no edit at all and writes
the listing's exe and StartIn. The check runs in the guest, where the shortcut's
paths live.
Fixes#694
* fix: keep a Steam target whose card is not mounted
- The app recreates /mnt/droiddeck-sd and /mnt/bannerlator-sd before binding the card, so the
mountpoint outlives a removed card. A target directly under one had an existing parent, so
the missing-file repair overwrote the edited Exe and Start In and kept them overwritten.
- The repair now needs the target's storage to be there: a card mountpoint that lists nothing
is a card that is not in the device, and the edit is kept for when it returns. Extra Steam
libraries under /mnt/droiddeck-lib/<id> get the same check.
- test_a_steam_target_under_a_bare_card_mountpoint_is_kept fails without the check and asserts
both fields; test_a_steam_target_under_a_mounted_card_goes_back_to_the_apps keeps the repair.
* fix: repair a Steam target removed with its folder
- A missing target is gone when its storage is mounted and either its folder is still
there or it lives in a tree the app always has (internal store installs, the internal
Steam library). An update that removes the whole game folder now repairs the shortcut.
- Store volumes and added game folders are removable mounts too: /mnt/droiddeck-stores/<id>
and /root/Games/<name> are checked for content before a target under them is treated as
gone, so an unplugged volume keeps the edited Exe and Start In.
- Tests: internal folder removed repairs both fields; a bare store mountpoint and a card
mountpoint keep both; a mounted card still repairs. 84 tests pass.
* fix: classify a Steam target by its resolved path
- A target such as /root/Games/Stores/../../../mnt/droiddeck-sd/Other.exe matched the
internal prefix and was repaired while the card was out. internal_target and
removable_mount now normalize the path before choosing the storage class, so the
decision follows the file the target resolves to; the kept text is unchanged.
- test_a_steam_target_is_classified_by_its_resolved_path fails before the normalization
(the edit is replaced) and keeps both fields after it. 85 tests pass.