* 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
* fix(addons): CurseForge connects once, reuses its game instance and skips rescans after its own changes
* fix(addons): a settled list is dropped by a refresh, a later change or a newer change
* fix(curseforge): publish the report under the same lock as the turn check
An older change could report its list after a newer one had already
reported, so the fallback marks could miss add-ons the newer change
installed.
* feat(ui): resize the session menu by its edge handle, and set dual screen to auto, on or off from the menu
* fix(ui): the session menu resize handle follows the finger across several moves per frame
* fix(ui): the closed agent menu button has no gap inside its outline
* feat(ui): the session menu's resize handle hovers just past its left edge
* fix(session): turning dual screen on from the menu moves the menu itself to the second screen
* fix(ui): keep the menu width bounds current and restore a pinned second-screen menu after backgrounding
Forever has its own launch code and installs headlessly through its
product code like the other titles, but the store hid it. It is now
listed and hidden once installed.
* fix(nativeguest): x86-64 path system calls and SIGSYS handlers stay inside the rootfs hook
FEX passed most guest path system calls to the kernel with an inline svc, so the
native path hook never mapped them, and it mirrored guest SIGSYS handlers with a
raw rt_sigaction that replaced the hook's own handler, after which the next
blocked system call killed the program. Path calls now go through libc's
syscall(), which the hook maps (guarded until the hook is initialised so an early
allocator cannot deadlock), and a SIGSYS handler set through syscall() is
recorded and chained like one set through sigaction().
* fix(ddexec): a program that re-execs itself keeps the rootfs hook
A re-exec through /proc/self/exe starts the program through the guest
ld.so again but left out the hook, so the child saw host paths. Steam's
reaper then recorded host install folders, and Battle.net games moved to
a mapped drive the Library could not resolve. The re-exec now preloads
the hook of the root the same way the first start does.
* fix(nativeguest): a spawned "ld.so --list PROGRAM" loads the program from the rootfs
* fix(nativeguest): keep the existing ld.so start comments
---------
Co-authored-by: maxjivi05 <maxjividen@gmail.com>
The clock pause preload opened its control file on the first monotonic
clock read. A program whose allocator reads the clock while holding its
own lock, as FEX does while it starts, re-entered that allocator through
the open wrappers and deadlocked. The control file is now opened only in
the preload's constructor, so a clock read never opens a file.
* feat(files): add a plain text editor to the file manager
* fix(files): address CodeRabbit review on the text editor
- compose the editor instead of the toolbar so EXIT can't bypass the
unsaved-changes guard
- read through a capped stream, keep undecodable files read-only, and
preserve POSIX permissions via staging-file rename with no direct-write
fallback
- serialize saves, keep dirty consistent across concurrent edits, reset
match index on text change, fix empty-state counter and read-only
replace buttons
- scroll match into view horizontally; ignore cursor-only edits for dirty
- add tests for literal U+FFFD files and the capped reader
* fix(files): treat rename failure as save error and follow symbolic links
* test(files): assert the resolved save target without canonicalizing it
---------
Co-authored-by: Dantalian <Dantalian-dev@users.noreply.github.com>
* fix(fex): free host signal state when a guest leaves its handler
FEX keeps each signal's host context on the host stack and frees it only
on rt_sigreturn. A guest that leaves its handler another way (siglongjmp,
or CoreCLR resuming a catch after a NullReferenceException) left about
2 KB of host stack and one SignalHandlerRefCounter count behind. Some
3500 such exceptions on one thread overran the guard-less 8 MB host
stack, and the CurseForge agent died with "Internal CLR error.
(0x80131506)" and "Stack overflow occurred on the same thread again!"
at the start of its second addon scan.
0009 chains each thread's signal frames with the guest frame range and
alternate stack they used. A signal that arrives in JIT code at the host
level of the newest frame, after the guest stack pointer has left that
frame, drops the left frames and stores its context where the newest
live frame (or the dispatcher entry) left the host stack. rt_sigreturn
pops its frame and any newer ones it skips; thread stop clears the
chain. Signals inside system calls or thunk callbacks are left alone.
This follows the approach suggested in FEX-Emu/FEX#2487.
0008 now restores InSyscallInfo only for signals that interrupted JIT
code, the only case that saves it. Restoring 0 for a signal that
interrupted a system call cleared the mark while the call was still
running; an itimer loop around time() crashed in 15 of 15 runs.
Pocket FIT Elite: siglongjmp out of a SIGSEGV handler died after about
3500 iterations under FEX-2611.1 with and without 0008 and finishes
200000 with 0009; the new probe (350000 escapes on and off the alternate
stack, mixed with returning handlers and nested handlers) finishes under
0009 and crashes before 2000 iterations without it. The 0008 probe
still reports no stale registers.
* test(fex): check every delivery hunk of the 0009 patch
* fix(fex): reset the host stack when a system call ends a block
* fix(fex): thunk calls mark the guest state as spilled
* fix(fex): signal returns apply the handler's register changes
* docs(fex): describe patches 0010 to 0012 and credit the upstream fix
* test(fex): require AVX2 for the ymm probe and keep vdso canaries live
A row shown as installed by its toc project id before the manager's first
report had nothing to delete when the manager did not list the project, and
the dialog reported success. The dialog now falls back to the folders whose
toc names the project, deletes them through the existing addon delete, and
shows the delete error when no folder matches.
* fix(addons): show installed addons as installed while the manager rescans
Opening the download dialog starts a fresh scan of the addon manager's
installed projects, and every row showed Install until it answered
(about 20 s). Rows now start from the manager's last report, kept only
for projects whose folders are all still on disk, and its new report
takes over, Update state included.
* fix(addons): match installed addons by their toc project id before the first report
Before the addon manager has reported at all, a search row whose project id
matches an installed addon's X-Curse-Project-ID shows as installed. Placeholder
ids are ignored and the manager's report always takes over.
* fix(addons): read toc fields from flavour tocs and keep known state when a scan fails
An addon whose main toc is a stub keeps its version and project id in the
flavour tocs, so missing fields are now filled from the next toc in order.
A failed manager scan now falls back to the last known installed state
instead of clearing it.
Some addons keep their data as metadata lines in the .toc (one has a
57 MB .toc with 400k "## X-..." lines). Opening the Addons tab read the
whole file into one string and kept every metadata line in a map, so each
opening allocated 220-270 MB for a moment and could push the app past its
heap limit. Stream the .toc line by line, keep only Version and
X-WoWI-ID, and stop once both are found.
* fix(addons): CurseForge rows follow CurseForge's own installed list
The CurseForge source reads installed state and available updates from
CurseForge's installed projects after asking it to rescan the game
instance, so addons removed from disk show Install again and out of date
ones show Update, which updates through CurseForge. Deleting an addon
from the addon list uninstalls it through CurseForge when CurseForge
manages it, so its list and the files stay in step.
* Delete addons through CurseForge only while it is already linked
* Link CurseForge on the Addons tab and give its rows Update and Uninstall
* Match WoWInterface addons to the AddOns folders on disk
The WoWInterface source now reads each addon's folder list and marks it
installed when every folder is on disk, whichever source installed it.
Deletes from that source go through CurseForge while it is linked.
* Fix Compose tests hanging after a dropped UI dispatch and stop CurseForge on tab dispose
A non-Compose test that runs the real App after a Compose test in the same
Robolectric sandbox leaves AndroidUiDispatcher flagged as scheduled while its
looper message is dropped by the sandbox reset, so global snapshot changes are
never applied and every later Compose test times out waiting for idle. The
shared compose rule now detects that state and re-arms the dispatcher.
CurseLink.close runs the stop on a job owned by the link, so the tab test can
join it and prove no CurseForge work remains after the tab is disposed.
* Match add-on folders by case, offer only real updates, settle deletes on disk
A delete that CurseForge finished before its link dropped now counts as
done when the folder is already gone. Managed uninstalls only consider
projects whose folders are all present, and folder names resolve
case-insensitively everywhere. Update is offered only for a newer
version, falling back to the source's current file when versions do not
compare. The test compose rule also re-posts a dropped frame dispatch.
* fix(fex): signal return restores the interrupted syscall state
A guest rt_sigreturn goes through FEX's syscall stub, which marks every
static register as spilled. Returning to unchanged JIT code skipped the
stub's reset, so later asynchronous signals skipped the register spill
and guest handlers read stale registers. CoreCLR's GC suspension reads
and redirects that context, which made x86-64 .NET programs fail with
random access violations. Restore the value saved at signal entry.
* fix(addons): run CurseForge headless from the addon browser, without a session
- The CurseForge source starts the app in its own headless gamescope
(droiddeck-headless, shared with the Battle.net Agent) instead of a hidden
session: no SessionService, compositor output or ImageReader.
- The helper's start keeps running until the app exits, so the app lives
for as long as the addon browser holds that guest command; closing the
dialog asks the app to quit, stops its process group and cancels the
command, which ends the app, its gamescope and the guest.
- An app the user already has open is reported busy and left alone.
- Removes BackgroundSession and the CompositorHost start path it shared with
SessionActivity, with their tests.
* fix(addons): bind each CurseForge stop to its launch and keep the inspector URL out of logs
A stop now only acts on the launch that registered it, so a late stop
from a closed browser cannot end a newer launch, and the browser stops
once. Command logs redact the inspector URL. The signal probe reports a
sender thread that cannot start, sets ECX before the measured region and
its test accepts a valid overshoot of the target count.
* fix(fex): unblock the probe signal before sampling
* feat(addons): add a CurseForge source to the addon browser
Search and install CurseForge addons from the Download addons window by
driving the installed CurseForge app in the background: it starts minimized
on the session's X display with its inspector bound to 127.0.0.1, and the
window's own renderer services handle game detection, search, install and
shutdown. Sign-in stays inside the CurseForge app.
The Install buttons in the addon list now size to their label, so the label
is centered and the button matches the other compact buttons.
* fix(curseforge): secret inspector URL, hold mode and serialised starts
- Start CurseForge with its Node inspector on 127.0.0.1:0 and publish only
the UUID websocket URL, kept in the 0700 state directory, so no fixed
unauthenticated debug port is exposed.
- The agent evaluates through that URL instead of a fixed port.
- Add a hold mode that runs as a session program and stops the app on
exit, and a lock so hold and start never launch twice.
* feat(addons): run CurseForge in a hidden session when none is running
- Opening the CurseForge source with no session starts one headlessly
(offscreen compositor output, shared start path with SessionActivity via
CompositorHost) running the CurseForge hold helper; leaving the dialog
stops the app and that session. A session the user already had is
reused and left running.
- Drop the "start a session" notice from every locale.
- Addon browser link: cleanup shares the link's lock off the UI thread,
stops the app at once on close, refuses work after close and stops a
launch that finishes after close.
- CurseForgeApp.start stops the app before every failed return.
- instanceFor returns no instance when the populated list has no match.
* Harden headless CurseForge session and helper lifecycle
Scope the hidden session to its id, roll back partial starts, release the
offscreen reader once the session ends, re-acquire the inspector when its
endpoint goes away, bound DevTools calls by one deadline, key the installed
snapshot by target, track the helper launch by pid start time and directory,
fail on lock errors, and update the HDR gate test to its new location.
* Map DevTools send failures and recheck the hidden session id
* fix(addons): bind the hidden session to the id it claims at launch
* Keep the CurseForge helper quiet when no launch is recorded
* feat(launcher): LT and RT step between the main tabs from anywhere in the launcher
LT and RT move to the previous and next main tab on every layout. The activity handles them before any page sees the key, so a focused control, an embedded Android view such as the terminal, or nothing being focused no longer swallows them; dialogs and popups keep their own keys. Pads that report the triggers only as axes, like the Xbox Wireless Controller, get an L2/R2 press when a trigger passes 60% of its travel; pads that send their own trigger keys are left alone.
* fix(launcher): trigger tab steps tick, drop a pending press on focus loss, and move once per pull
Controller haptics now ticks for L2 and R2. A synthetic trigger press waiting its 40 ms is cancelled when the launcher loses window focus or is destroyed, so a dialog that opens in between keeps the page behind it. Each pull is tracked: when a synthetic press has gone out, the pad's own trigger key for the same pull is swallowed instead of stepping a second tab.
* fix(agent): keep the composer above the keyboard outside fullscreen
* fix(ui): release a search field when another control is tapped
* fix(ui): release the add-on search field in its dialog, and let a reopened search take focus
* fix(ui): a drag that returns to where it began does not release the search field
* fix(steam-x64): keep the session's GL thunk for the x86 web helper
FEX's global AppConfig for steamwebhelper turns the GL thunk off and is
read after FEX_THUNKCONFIG, so the x86 helper used the rootfs's x86 Mesa.
Steam's browser compositor creates its window through SDL3 and GLX in
the helper's browser process, x86 Mesa faulted in driCreateNewScreen3
(SIGSEGV) about 11 s after each start, and the client restarted the
helper every 12 s.
For every global FEX AppConfig that turns off a thunk the session uses,
the launcher writes a local AppConfig with the session's thunk set. It
leaves local files with other content alone and removes its own files
when the client runs in software.
* fix(steam-x64): write FEX AppConfig overrides atomically
* fix(steam-x64): stage AppConfig overrides in a unique temporary file
* fix(steam-x64): publish AppConfig overrides without replacing a newer file
A window is a focus candidate only while _NET_WM_WINDOW_OPACITY is above
zero, but a change of that property never re-ran focus selection. A
layered window that maps fully transparent and fades in was skipped at
map time and stayed skipped once opaque, so a nested desktop session
hid its gamescope window and the game ran with nothing on screen.
* fix(preload): accept NETLINK_ROUTE multicast subscriptions
Programs that watch for network changes bind their route socket with
multicast groups or join them with NETLINK_ADD_MEMBERSHIP. The emulated
socket refused both with EACCES, and .NET's NetworkChange treats that as
fatal: CurseForge's Mods Agent failed to initialise with "Permission
denied" from NetworkChange.CreateSocket(), so the app never loaded its
library.
Real Linux lets unprivileged sockets join rtnetlink groups. Accept the
groups at bind and through ADD/DROP_MEMBERSHIP, report them from
getsockname(), and keep queries on the same socket working. No change
events are generated yet; queries still return the current snapshot.
* fix(preload): keep netlink group membership in the shared socket state
Memberships now live in the peer metadata the kernel holds for the socket, next to the port and cap ack, so they survive exec and a change made by one process after fork is seen by every process holding the socket.
* fix(session): answer denied /proc/net socket tables
Android's SELinux policy denies app processes every file under /proc/net.
.NET lists TCP listeners from /proc/net/tcp and tcp6 before it binds a
server port, so the CurseForge Mods Agent failed on every port with
"An error was encountered while querying information from the operating
system" on stock firmware. Denied tcp, tcp6, udp and udp6 reads now get a
header-only table, through open and openat as well as fopen, the same way
the route and interface tables already are.
* fix(session): keep synthesized socket tables read-only and file-only
Reopen the populated table read-only instead of duplicating its writable
descriptor, and leave O_DIRECTORY opens with their original failure.
The FEX build pinned FEX-2610 and its tag checks only accepted four
digits, so FEX-2611.1 was never picked up. The build now takes the
latest release tag, and Fixed-upstream compares the four-digit release.
CMake 4.5 rejects DEPENDS in install(CODE), which stopped host thunk
builds; patch 0007 drops it.