* fix(desktop): Firefox draws on the system PowerVR driver
Under the nested KWin on the system PowerVR driver, Firefox's Wayland window
stops updating partway through drawing and repaints only where the pointer
moves. Through Xwayland it draws normally, so Desktop runs Firefox on X11 on
that path.
* fix(desktop): Firefox renders in software on the system PowerVR driver
The Xwayland workaround only worked because Firefox fell back to software
WebRender there. The breakage follows hardware WebRender on zink, not the
Wayland window: with MOZ_ACCELERATED=0 Firefox draws correctly on Wayland,
so it keeps native Wayland features such as fractional scaling.
---------
Co-authored-by: Jacob Lambert <183008808+JMLambo@users.noreply.github.com>
* fix: turn on d3dx9 and D3DCompiler 42 for Mount & Blade Warband
Warband compiles its postFX effects at launch through d3dx9_42. With Wine's
built-in d3dcompiler_42 the launch stops on an error dialog (E5017 'Write pass
assignments', then E5033 'Unknown target profile __fx_2_0__'). The native
d3dx9 and D3DCompiler 42 components fix it, but nothing picked them: Steam's
list for the game does not name them and the folder scan only recommends d3dx9.
* fix: turn on D3DCompiler 43 for Don't Starve Together
Don't Starve Together renders through its bundled ANGLE, which compiles
vs_3_0/ps_3_0 shaders with d3dcompiler_43. With Wine's built-in compiler
the bytecode trips DXVK's SM3 parser (`m_info.kind == OperandKind::eSrcReg`
in sm3_parser.h), the render thread stops after "Renderer initialize: Okay"
and the game sits on a black screen. The native D3DCompiler 43 component
fixes it, but Steam's list for the game does not name it.
* fix: turn on D3DCompiler 43 for Europa Universalis IV
EU4 builds its map effects at launch through native d3dx9_43, which compiles
them with d3dcompiler_43. Wine's built-in d3dcompiler_43 fails the terrain,
border, map name and bloom shaders with E5005 ('No compatible 2 parameter
declaration for GetFoWColor'), so the map draws black and province names show
as white blocks. Steam's list for the game names only d3dx9; turning on the
native D3DCompiler 43 component as well fixes the map.
* test: keep one per-game redist test, the one that also covers Steam's d3dx9 pick
The Warband and Don't Starve Together tests only restated their SCRIPTED rows;
Skyrim's test already covers how SCRIPTED picks are added.
* fix(storage): warn when game storage is formatted as FAT32
FAT32 cannot hold files over 4 GB, so Steam games with larger files fail to install and Steam reports 'Not enough disk space'. Warn when such a card is chosen as game storage.
* fix(storage): translate the FAT32 warning into Russian
* fix(storage): warn about FAT32 for Automatic, extra libraries and store folders
Show the FAT32 note in the Second library menu while the effective card is FAT32, so the default Automatic choice is covered, and warn when an additional Steam library or a store install folder is added.
* fix(storage): shorten the FAT32 warning and warn on reselecting a saved folder
* fix(storage): warn for the resolved store target and keep the SD note
---------
Co-authored-by: Dennis Zabolotny <15849186+zdennisz@users.noreply.github.com>
* fix(gog): skip saves GOG Cloud marks deleted
GOG keeps a deleted cloud save in the listing as an empty gzip object
(hash aadd86936a80ee8a369579c3926f1b3c). The listing was read as plain
names without hashes, so every deleted save was downloaded again as an
empty file. Ask for the JSON listing, keep each object's hash, treat
deletion markers as absent, and only send a marked save back once it
changed locally. Local files are never removed.
* docs: credit gogdl and Lutris for the GOG cloud deletion marker
With depthTestEnable off, Vulkan ignores depthCompareOp. The Mali-G610 driver behind Venus
(Nothing Phone (2a), Dimensity 7200 Pro) applies it anyway, even without a depth attachment.
Zink leaves the op at VK_COMPARE_OP_NEVER whenever GL has the depth test off, so every fragment
Zink draws is thrown away: clears and copies work, draws never show. This is the black Steam UI
when it renders through Zink and the black picture of OpenGL games such as Stardew Valley. DXVK
sets ALWAYS in the same case, which is why D3D games drew.
The layer now hands the driver ALWAYS while the depth test is off:
- vkCmdSetDepthTestEnable and vkCmdSetDepthCompareOp keep the state per command buffer, which
vkBeginCommandBuffer clears. While the test is off the driver gets ALWAYS; turning it on again
restores the application's op.
- A pipeline with the depth test off and neither state dynamic is created with ALWAYS.
It is on for every device with gaps. ALWAYS for a disabled depth test changes nothing on a driver
that follows the spec.
The handle maps use key 0 for an empty slot. vkDestroyBuffer, vkFreeMemory and the other destroy
calls accept VK_NULL_HANDLE, and map_remove(0) matched the first empty slot it reached, so every
such call lowered count without removing anything. Once count wrapped below zero, every map_put
saw a full table and doubled it, and each rehash took twice as long as the one before.
Steam's web helper frees null buffers about 50,000 times in a few minutes. On a Mali-G610 its UI
stalled periodically for 0.2 s, 0.37 s, 0.75 s, 1.5 s and then 3 s, and the buffer map reported a
count of 4294967295.
map_get, map_put and map_remove now ignore key 0. On a Nothing Phone (2a) running 0.7.1 with this
change, the buffer map stayed at 256 slots after 115,000 frees and the stalls were gone.
* perf(steam): setup applies Steam's client update itself so the first launch has nothing to unpack
The setup already downloads every package of Steam's client update. droiddeck-steam-preapply now extracts them and writes the .installed and .manifest records the way Steam's updater does, so the first launch verifies and starts instead of unpacking for about half a minute and restarting. When it cannot, the packages stay and Steam updates itself as before.
* perf(setup): the Steam stage skips the plain packages it just applied, and Proton's install trusts the prefetch's checksum
With the whole client update applied from the cached packages, the separate 362 MB plain-package install is redundant: the cache pass applies the update and finishes the install, and the plain install stays as the fallback. DroidDeck Proton's archive was hashed twice more at install time after the prefetch had already verified it; the install now reuses that result while the file is unchanged.
* fix(steam): a failed or cancelled apply leaves nothing stale, extraction stays inside the Steam root, and a cache failure still installs
A failed apply removes its record and the cache marker so the next run retries; cancelling stops the helper; entries that leave the Steam root, directly or through a symlink, are refused; the plain install still runs when the cache pass fails; Proton's install reuses the prefetch's verification only for the same digest.
* fix(steam): a cancelled apply clears the cache marker too
* fix(desktop): Go programs see the session's identity and paths
Static Go programs now get the session's root identity from getuid and its
relatives, and set*id calls succeed, as C and x86 programs already do. The
added code also takes over Go's second raw system call function (and its
golang.org/x/sys copy), which getuid goes through.
Go programs that link the C library (snapd, gocryptfs, ipp-usb) get the same
code: their Go note is found past the other notes, and the code fits before
a data segment that does not start on a page boundary. snap now reaches the
session's snapd and installs snaps.
* fix(desktop): read every Go note and retry Go programs after a failed scan
run_parallel is called in an || list, which switches set -e off inside it and inside its workers, so a failed claim left the worker's index empty and the worker exited successfully with packages unclaimed. The worker now checks the claim itself and marks the run failed, and claim_next uses the same flock command as the unpack lock.
The parallel workers claimed packages with mkdir, which is not atomic in the app's guest shell: two workers sometimes took the same package and about 3 installs in 8 failed on a device. Claims now come from a counter under a flock, and a counter that cannot be read or written fails the worker.
* fix(appimage): catalog AppImages start without proot
* fix(appimage): cache cleanup does not follow symlinked entries
* fix(appimage): keep unpacked copies in use and track subsecond changes
* fix(appimage): extract native images through an open descriptor
---------
Co-authored-by: maxjivi05 <maxjividen@gmail.com>
The child-process fix always uses the guided pairing flow, Finish setup opens the setting directly and queues the Steam launch, the Play button carries the first-run progress, the setup bar weighs each download by its real size, and the Steam client packages download over four connections and unpack one at a time under a flock.
* feat(tools): pre_pr.sh runs the CI checks the fast loop skips, for what the branch changes
* fix(tools): pre_pr.sh checks authorship with no file changes and skips deleted tests
* docs(agents): pre_pr.sh picks tests by name
* docs(agents): pre_pr.sh compiles and lints only for app changes
* fix(ci): cache the Windows launcher services so hosted runners finish within the job limit
* fix(ci): save each launcher build as soon as it finishes, and install both linkers for Rockstar
The tab layout from #2798 moved Stores into More for anyone who never
arranged their tabs, so the Battle.net and Epic launchers on the Stores page
looked gone after updating from Stable. A layout someone saved is kept.
* Native hook: start a program again through /proc/self/exe as itself
A program that execs /proc/self/exe (Chromium's network and utility
services, Electron apps) reached the kernel link, which names ld.so, so
the child was started without ld.so and saw libddexec as its own
program. Chromium then looked for its ICU data beside libddexec and the
network service crashed in a loop.
The exec path now resolves /proc/self/exe to the program the hook knows
it runs, so it is routed like any other guest program, and readlink of
the exe link names a program from a bind by its guest path.
* fix(hook): keep the host path of a running program a nested bind shadows
* feat(build): build_local.sh reuses main CI's prepared components when this tree would prepare the same
* docs(agents): build_local.sh reuses CI's prepared components
* fix(build): reuse only this repository's main artifacts, keyed by artifact id
* fix(build): CI reuse verifies before replacing, and declines other NDKs, PulseAudio sources, unregistered inputs and edited submodules
* fix(build): CI reuse also declines a VK_INCLUDE override
* fix(build): CI reuse also declines a custom build image
The browser flags were added to every program beside chrome-sandbox
that had no --type switch. Chrome's crash handler is such a program, so
it was started with --no-sandbox, rejected it and exited. A Chromium app
that starts a program from its own folder already passes that program
the arguments it needs, so those programs are left unchanged. Another
Chromium app started from it still gets the flags.
* fix(nativeguest): a script interpreter reached through a bind runs as a guest program
A Flatpak runtime binds its own /usr outside the sandbox root, so the hook
took #!/usr/bin/bash there for an Android program and handed it to the
kernel, which failed with "bad interpreter". An interpreter whose guest
path is a bind now starts like any guest program.
* Native hook: keep Android interpreters a bind reaches on the host
* Native hook: match the root of an interpreter on a folder boundary
* fix(fex): x86 programs see the session's identity from getuid and its relatives
* fix(hook): getresuid and getresgid keep EFAULT for a missing pointer
* fix(hook): getresuid and getresgid return EFAULT for any pointer the kernel cannot write
* fix(hook): getgroups returns EFAULT for a list the kernel cannot write
* fix(hook): named semaphores live where the session maps /dev/shm
* fix(hook): a semaphore opened twice is one mapping, mapped before its name is published
* fix(nativeguest): a fork while another thread opens a semaphore leaves the child a usable registry
* Native hook: register the semaphore fork handlers at load
* fix(test): ProtonMenuAutoTest no longer fetches Proton releases from GitHub
aCachedCheckUpdatesOnlyInstalledFamiliesAndReplacesOlderDroidDeckProton left experimentalRefresh at its default, which downloads the release list with 10 s connect and 15 s read timeouts, so a slow or rate-limited network blew the test's 5 s wait.
* fix(test): a background-thread error no longer halts the unit test JVM
Every Robolectric test runs App.onCreate, which chains CrashHandler onto the default uncaught-exception handler. A plain JVM has none, so the first test's handler halts with exit 2 on any later uncaught error, and the chain grows by one layer per test. A Robolectric lifecycle plugin now resets the default handler to a printing one before each test.
* fix(build): helper script edits no longer invalidate the prepared runtime, and every build uses CI's NDK
* docs(agents): helper script edits no longer need build_local.sh
* fix(desktop): Electron and Chromium apps start however they are launched
The session preload only added --no-sandbox when the program path itself
sat beside chrome-sandbox, so a PATH link such as /usr/bin/vesktop was
missed and the app aborted on the setuid sandbox. It now resolves the
path and also checks the parent folder, and adds --ozone-platform=x11
when an X display is set, since Wayland cannot open the GPU stand-in.
The desktop menu overrides that added the same flags are removed: they
covered only menu launches made after the desktop started, and the
preload now covers every launch. Stale overrides are cleaned up by the
existing marker check.
* fix(preload): execvp checks the program found on PATH for the Chromium flags
* fix(preload): the PATH lookup prefers the program execvp would run
* fix(desktop): an arm64 AppImage started directly runs like one opened from the file manager
Without proot a guest program starts through the dynamic loader, which
refuses the nonzero ABI version byte that marks every type 2 AppImage,
so running an arm64 AppImage from a terminal or from a menu entry that
names the image failed with "ELF file ABI version invalid". The preload
already hands foreign programs to droiddeck-open; AppImages now go there
too, where they are unpacked and started as the file manager does.
* fix(desktop): hand off only AppImages that carry a filesystem, never a bare runtime
* fix(hook): /dev/fd in a forked process names that process's own descriptors
The /dev/fd and /dev/std* binds point at /proc/self/fd. Their sources were
resolved with realpath when the binds were loaded, which turned /proc/self
into the loading process's pid. A child that forks without exec, such as a
bash subshell running cat < <(...), then opened its parent's descriptors
and failed with ENOENT. Sources under /proc keep their own path.
* fix(hook): keep canonical bind sources for /proc paths that name no process
* fix(hook): only /proc bind sources that name a process keep their form
* fix(nativeguest): keep the parent of the guest root inside the rootfs
* fix(nativeguest): keep every .. walk inside the guest root and its mounts
Absolute paths that climb above /, relative paths from the working
directory or any descriptor, and paths that climb out of a mount were
resolved by the kernel from the rootfs folder or the mount's real place,
so /.., chdir("..") from / and fstatat(fd, "../..") listed the app's
files folder. The walk is now resolved in the guest's view first.
* fix(nativeguest): .. from a linked mount ancestor follows the real directory
---------
Co-authored-by: maxjivi05 <6025299+maxjivi05@users.noreply.github.com>
* fix(nativeguest): load glibc locales and iconv modules without proot
glibc opens its locale files and gconv modules with its own internal
open(), which the hook never sees, so every program ran in the C locale
and iconv knew only built-in charsets: Qt warned it could not switch to
UTF-8, setlocale() failed for C.UTF-8 and the app's language, and
iconv -t latin1 was unsupported. The hook now points LOCPATH and
GCONV_PATH at the rootfs; droiddeck-fex keeps x86 guests on their own
gconv modules.
* test(nativeguest): the locale default test ignores the developer's own paths
* feat(onboarding): one setup card, Steam client and Proton downloaded in the background, no component toast
* feat(onboarding): an optional Bluetooth controllers row in the setup card asks for the permission up front
* feat(onboarding): prefetch Steam's whole package cache, one foreground notification, child-process setup while downloads run
* test(steam): the cache pass keeps packages under Steam's names and is not repeated
* feat(onboarding): unpack the whole Steam client ahead of time and record it as installed, downloads no longer wait for a cool device
* feat(onboarding): setup progress on the Steam home page, Bluetooth asked only from the setup card, Steam unpacks its own files
* fix(onboarding): review fixes: removal does not report setup progress, cancel stops the whole prefetch, cache files are verified, no resume toast
* fix(onboarding): a cancelled prefetch is never a setup failure
* fix(onboarding): the Steam fact is updated atomically
* feat(onboarding): Bluetooth controllers moves into the Steam integration list
* fix(remote-play): the decoder reports a changed stream size, so fullscreen streams are not cropped to a corner
* fix(remote-play): capture buffers are sized for large streams up front and a size change reopens only the app decoder
* fix(remote-play): reject out-of-range scaling deltas and an SPS that ends before its frame flag
* ci: keep unit-test scratch out of the runner's shared /tmp
Test JVMs now write temp files under the test task's build folder,
which checkout wipes on every job, so a killed run no longer leaves
Robolectric and JUnit folders behind in /tmp.
Self-hosted runners also clear stale test folders they own in /tmp,
drop the regenerable Gradle build cache when the workspace has under
20 GB free, and log disk use so a full disk is visible in the job.
* test(agent): size check no longer depends on the temp path's length
A symlink's own size is the length of its target path, so the old
100-byte bound failed once the temp dir moved under the build folder.
* ci: never remove a mount point while clearing runner scratch
* ci: keep a scratch folder that anything inside it touched recently
* ci: keep a scratch folder the freshness scan could not read
* feat(steam): first-run defaults for big art on Library home and the bouncing logo screensaver
* fix(steam): seeded keys land in the root store when nested stores close on its last line
* feat(ui): a More tab in the session menu keeps the pages you use least, and holds the way to arrange them
* fix(ui): bumpers walk only the strip, and back leaves a page kept inside More
* feat(ui): a Back to More row at the top of pages kept inside More
* refactor(ui): the arrange pages editor reuses the Edit tabs More divider
* feat(ui): the Session page can be kept inside More
* fix(ui): the on-screen bumpers step across the strip like the physical ones