github selkies-project/selkies 2.3.0

49 minutes ago

Selkies 2.3.0

Selkies, pixelflux, and pcmflux are developed and released together in this repository from 2.3.0 on, at one version. The pixelflux and pcmflux repositories mirror their crates for this release cycle and stop at the next stable release; each earlier Selkies release's notes here carry the notes of the pixelflux and pcmflux releases it shipped.

What Selkies 2.3 brings

  • A Rust server. Selkies is one executable with no Python interpreter: the HTTP control plane on Axum and Tower, the WebSockets data plane, an in-tree WebRTC stack (selkies-rtc: ICE, DTLS, SRTP, SCTP data channels, an RTP sender with FlexFEC, pacing, and TWCC), display management over x11rb, input, clipboard, gamepads, the virtual camera, audio control, and the file, printing, apps, recording, and screenshot routes. pixelflux and pcmflux are linked as Rust crates, with no Python between them and the server, and the web client is compiled into the executable. The TURN REST service is Rust as well, so no Selkies deployment runs Python any more.
  • A window manager and a desktop of its own. --wm puts the session's windows under selkies-wm, one policy engine for both backends: on Wayland the capture compositor places, frames, focuses, and stacks its clients itself and runs Xwayland for X11 ones, so no labwc nests inside it; on X11 it claims the window manager selection, so no openbox runs. --desktop starts the selkies-desktop shell over it (panel, start menu, taskbar, tray, notifications, wallpaper, desktop icons, file manager, and settings), and a session switches between the desktop and the application alone at runtime. The desktop image runs both by default.
  • Selkies runs from anywhere. Each release ships a self-contained bundle per architecture and C library (the server, the shell, a patched Xvfb, Xwayland, PulseAudio, dbus-daemon, CUPS, and the interposers), and the wheel, the native packages, the AppImage, and a single executable file are that bundle repackaged. A host provides its C library: glibc 2.17 or newer on x86_64 (CentOS 7 onward), 2.28 or newer on aarch64, or musl 1.2. Run with no arguments, selkies brings up a desktop of its own in an isolated session.
  • Text stays sharp beside motion. A block ledger tracks which 16x16 blocks are still, and every encoder that can carry it refines them beside a moving area instead of holding the whole screen at motion quality: 1080p text beside a playing video at 8 Mbit/s goes from 32.4 to 41.5 dB on x264 and from 33.1 to 45.9 dB on NVENC H.264. x264, x265, libvpx, and SVT-AV1 are built with patches that skip or copy only what changed, and are linked into every build.
  • Congestion that recovers instead of burying the session. Both transports back off once to what the path delivered, start a stream below its ceiling and climb, sound a returning path with padding, cap a CRF stream when the path narrows, and keep audio live through a squeeze: on a 20 to 1.5 Mbit/s step held 5 s over WebSockets, sound heard live rose from 0.2-0.4 s of the 5 to 3.8-4.3 s, and audio no longer plays fast-forward afterwards (#620).
  • Lower capture latency. The images' Xvfb shares its framebuffer with the capture, which reads only the tiles drawn since the last frame; a small reserve of extra frames ends the waits that locked a change behind its pacing window (draw to grab 4.66 ms to 0.20 ms at the median); and on Wayland a window that covers the output is encoded straight from its buffer.
  • Hardware fixes across vendors: Intel's iHD (H.264 level 6 CBR corruption, HEVC drift and crashes, AV1 and VP9 reference search), Intel's i965 on Haswell and older (#658), AMD's radeonsi (compressed buffers in place, a hang at fractional rates), NVIDIA (DRI3 descriptor leaks, NVENC still-block refinement, faster Wayland uploads), and Jetson (real key frames on request).
  • Pelorus, an agent interface: the desktop described as text from each application's accessibility tree, actions on it, and a model of your choosing that drives it from a chat, off unless --pelorus is on.
  • Security by construction. Every route is held to the access declared where it is registered, every input verb is admitted through one table on both transports, and every path a request names is opened by descriptor after its check.

Upgrading from 2.2.1

The server

  • There is no selkies Python package. The wheel installs the selkies executable on PATH for any Python 3 and keeps the selkies.session:jupyter entry point; selkies session --jupyter-config prints the jupyter-server-proxy configuration. Nothing imports selkies from Python any more.
  • A bare selkies is a desktop, not the server. Run with no arguments outside a session, it re-executes as selkies session with the Wayland backend, the desktop shell, and HTTPS on 8080. It carries no password of its own: with the login on and none configured it exits with status 78 and says how to name one (SELKIES_BASIC_AUTH_PASSWORD_FILE or SELKIES_BASIC_AUTH_PASSWORD). Any argument still runs the server alone, so a script that configured the server through the environment alone passes one (for example --mode=websockets). Container images keep their published placeholder login.
  • selkies session is isolated from the host by default: its own runtime directory, session and system buses, and sound server, sharing only the home directory. It no longer adopts an inherited PULSE_SERVER or the host's pulse socket. --host shares the host's as before, and --runtime-dir names a kept directory. The session's desktop starts in $HOME, not the launcher's working directory.
  • selkies session and a bare selkies quarantine their desktop configuration (--quarantine-xdg, targeted there, off for the server alone and in the base image): the session's theme, GSettings, display density, and desktop entries go to $XDG_STATE_HOME/selkies/quarantine instead of the user's own configuration.
  • Listeners follow what was named. --https-port (new) alone is the only port, --unix-socket is served beside a named --port or --https-port, and the default --port opens only when neither of the others is set.
  • The web client is embedded. No package, image, wheel, or AppImage installs share/selkies/web; a deployment serving its own client sets web_root to a directory holding an index.html.
  • Computer Use is served by the server's own HTTP stack at /api/computer-use and /api/recording; the root paths still answer. More than 16 waiting actions are answered 503, and an unknown path with the token 404.
  • Recordings: a name must end in .mp4 (400 otherwise), an existing file is never overwritten (the first free -2, -3 name is taken and reported), Computer Use's record_start ignores audio_socket in its body (use PIXELFLUX_RECORD_AUDIO), and on Wayland a request naming no display records every display into files of its own. Responses gain a files list.
  • Pelorus's API lives under /api/pelorus and takes the session token like every other API route.
  • The Zink switch is read as SELKIES_DISABLE_ZINK only. SELKIES_WEBRTC_PACER_STALE_MS has no effect.
  • wayland_socket_index now names the socket the built-in compositor listens on, and defaults to -1 (the first free one from wayland-1) where it was 0.

Streaming

  • Striped H.264 is removed: software H.264 (x264 and OpenH264) codes the whole frame, and h264enc-striped is off the menu. A setting or a stored client choice naming it streams the configured encoder (h264enc by default) and logs why. pixelflux's CaptureSettings.video_fullframe is gone from both its Rust and Python APIs.
  • Turbo (video_streaming_mode) defaults to off: a session encodes only what changes until the user, the operator, or a stored client choice turns it on.
  • A stream opens below its ceiling (at the rate its page remembered, otherwise 4 Mbit/s) and climbs to it, and with congestion_control on, CRF displays on x264, libvpx, NVENC, and SVT-AV1 are capped at the steered rate where they ran uncapped.
  • A WebSockets display streamed by one page keeps one reference frame on every encoder but NVENC, so a dropped frame there is repaired with a key frame; a display two pages stream takes its encoder's own depth.
  • WebRTC: ICE no longer gathers on docker0 or br-* bridges (webrtc_ignore_interfaces; set none to gather on every interface), the offer leaves audio's SSRC unsignaled and audio may move to a new SSRC after congestion, and Chromium-based browsers negotiate AES-256-GCM SRTP.
  • WebSockets sockets hold at most 64 KiB unsent (TCP_NOTSENT_LOWAT) and drop audio queued longer than 200 ms.
  • SVT-AV1 constant-rate sessions open at preset 9, the fastest 4.3 keeps long-term references at; a still screen's held key frame is 39-45% larger than at preset 8.
  • Intel i965 (pre-Skylake) H.264 CBR forces Turbo, the only way its constant rate holds; the dashboard hides the switch there.
  • Reverse proxies pass upload bodies through unbuffered (nginx: proxy_request_buffering off;), or uploads arrive at the client's full uplink rate before Selkies can pace them (#649); a host serving fast uplinks over long round trips raises net.core.rmem_max.

Images and packages

  • The desktop image runs SELKIES_DESKTOP=true: the server manages windows and runs selkies-desktop on both backends. LXQt, Openbox, and the image's labwc configuration are gone, along with the lxqt, desktop, and openbox services; START_LXQT is not read, and START_DESKTOP is honored as the older name of SELKIES_DESKTOP. -e SELKIES_DESKTOP=false leaves the display server alone.
  • The base image builds and installs no labwc (a derived image installs its own compositor and names it in SELKIES_WAYLAND_COMPOSITOR), drops the i386 architecture and its 32-bit graphics runtime (32-bit applications bring their own, as proot-apps does for Steam; the 32-bit interposers and fake-udev stay), installs no xcvt, and compiles nothing: it installs the glibc bundle of its architecture.
  • The interposers moved to /usr/lib/selkies_input_interposer.so, /usr/lib/selkies_v4l2_interposer.so, and /opt/lib/libudev.so.1.0.0-fake (with _32 builds), the paths proot-apps' application roots expect; fake-udev no longer replaces the system's libudev.so.1. Anything preloading the old /usr/$LIB paths updates them.
  • Xvfb is a patched XLibre server, started without -shmem (its framebuffer is shared through the SELKIES-FRAMEBUFFER extension instead) and without +iglx, so an indirect GLX context is refused with BadValue instead of crashing the X server.
  • Native packages install the bundle at /opt/selkies, one package per format and architecture for every distribution taking the format, with selkies and selkies-desktop on /usr/bin.
  • The selkies wheel is py3-none: manylinux_2_17 on x86_64, manylinux_2_28 on aarch64, and musllinux_1_2. The x86_64 AppImage needs glibc 2.17.
  • The turn-rest image is a static Rust binary running as user 65534 on alpine:3; TURN_REST_ADDR and TURN_REST_PORT now take effect in the image, and WEB_CONCURRENCY is its worker thread count.

Running this build

Container: the desktop, a browser, and an audio stack, with nothing to install:

docker run --name selkies -it -d --rm --shm-size=2g -p 8080:8080 \
    ghcr.io/selkies-project/selkies/desktop:2.3.0-ubuntu26.04

Open https://localhost:8080, accept the container's self-signed certificate, and log in as ubuntu with the password mypasswd. Set another with -e PASSWD= before anyone else can reach the session. debiantrixie is the other flavor, and latest now points at this release. The flags for NVIDIA, Intel, and AMD GPUs are in Getting Started.

Your own desktop in a browser, from the single executable file, which needs nothing but the C library (add -musl on Alpine):

EXE="selkies-2.3.0-$(uname -m)"
curl -O -fsSL "https://github.com/selkies-project/selkies/releases/download/2.3.0/${EXE}"
chmod +x "./${EXE}"
install -D -m 600 /dev/null ~/.config/selkies/password
printf '%s\n' 'a password of your own' > ~/.config/selkies/password
SELKIES_BASIC_AUTH_PASSWORD_FILE=~/.config/selkies/password "./${EXE}"

Its first start unpacks the bundle, about 120 MB, to ~/.local/state/selkies/bundle and goes on from there; later starts of the same release reuse it.

PyPI: the same bundle as a wheel, on any Python 3:

pip install selkies
SELKIES_BASIC_AUTH_PASSWORD_FILE=~/.config/selkies/password selkies

AppImage: runs from wherever you put it, on glibc 2.17 or newer on x86_64 or 2.28 or newer on aarch64. With no arguments it is the desktop above; given session it starts a session with the desktop you choose, and given any other arguments they are the server's:

APP="selkies-2.3.0-$(uname -m).AppImage"
curl -O -fsSL "https://github.com/selkies-project/selkies/releases/download/2.3.0/${APP}"
chmod +x "./${APP}"
"./${APP}" --public --port=8080 --basic-auth-user=user --basic-auth-password=mypasswd

Native packages: one package per format and architecture, installing the bundle at /opt/selkies:

PKG="selkies-2.3.0-$(dpkg --print-architecture).deb"
curl -O -fsSL "https://github.com/selkies-project/selkies/releases/download/2.3.0/${PKG}"
sudo apt-get install -y "./${PKG}"

Native Install has the .rpm, .apk, and .pkg.tar.zst lines and the bundle itself (selkies-2.3.0-<arch>-linux-<gnu|musl>.tar.gz). Jupyter, Coder, and Open OnDemand covers selkies session and the three integrations.

Checksums and provenance: every file here is listed with its SHA-256 sum in SHA256SUMS, and GitHub attests the build provenance of each. You can check a download with either:

  • sha256sum --check --ignore-missing SHA256SUMS
  • gh attestation verify "./${PKG}" --repo selkies-project/selkies

Changes since 2.2.1

The Rust server

  • One executable. selkies serves HTTP and HTTPS (with in-place certificate reload), TCP and Unix-socket listeners, the auth gate, token table, and audit trail; the WebSockets and WebRTC transports; display management over x11rb (RandR modes, pluggable outputs, logical monitors, the per-desktop DPI ladder); XTEST and XFixes input and clipboard on X11 and in-process injection and data control on Wayland; the libpulse audio control plane; uinput gamepads and the interposer sockets; the virtual camera; and the file, printing, apps, recording, and screenshot routes. selkies session, selkies resize, selkies gpu-probe, selkies manual-size, and selkies start-framerate are subcommands, and selkies --version names the pixelflux and pcmflux it links and the web client it carries.
  • The web client is compiled in and served from memory, gzip-compressed with an entity tag per file and 304 revalidation. Over a 5 Mbit/s, 60 ms link, Chromium's first dashboard load went from 1.68 MB in 2.83 s to 497 KB in 0.94 s. web_root serves a client of a deployment's own in its place, and the startup log says which client is served.
  • --https-port opens a listener that always serves HTTPS on the configured certificate, minted there if missing, beside a plain-HTTP --port, so a reverse proxy talks HTTP to one while a browser reaching the host directly gets a secure context on the other, with no web server in between.
  • --basic-auth-password-file reads the password from a file (container secrets, systemd credentials, a 0600 file), keeping it out of the environment and the command line.
  • --app-logs=false sends the session's applications' output (the autostart, programs started from the menus, and the desktop session) to /dev/null without quieting Selkies' own log; --wayland-session names the desktop script for the Wayland backend beside --session for X11.
  • The installed web app is named from ui_title, and the new ui_icon names an image served as the icons and favicon, so a single-application image brands itself without rewriting the dashboard's files.
  • The server needs only the C library to start. libpulse is opened at run time on first use, and a server without it serves its session without sound; the C++ runtime and unwinder are linked in with no symbols exported, so a GPU driver's C++ code still binds the host's libstdc++.
  • No host without libEGL crashes the server. selkies gpu-probe, the Wayland compositor's GPU bring-up, and the X11 DRI3 import decline the GPU path where libEGL is missing (Ubuntu 24.04 without libegl1, Alpine without mesa-egl, a Tesla K80): an NVIDIA Xorg falls to NvFBC, and with everything hidden the session streams on x264.
  • A renewed certificate copied in with its timestamps kept (cp -p, rsync -t, a restored backup) is reloaded: the watcher compares device, inode, size, and both times instead of waiting for a newer mtime.
  • A browser on [::1] is redirected to the loopback address before the login, so it signs in once rather than twice across two origins.
  • Each log line is one write, so the launcher's and the server's lines no longer interleave mid-line in a shared stderr, and smithay's warnings about applications' protocol misbehavior appear only under --debug.
  • Cryptography comes from AWS-LC throughout: DTLS, SRTP, certificates, the socket cookie's HMAC, and every random value the WebRTC stack draws (ICE credentials, STUN transaction ids, SSRCs, sequence origins, SCTP tags) (#576). HTTPS keeps rustls' post-quantum key exchange.

selkies session and the standalone desktop

  • An isolated session: selkies session runs its own session bus at $XDG_RUNTIME_DIR/bus (joined by Selkies, the window manager, and the desktop), its own system bus, and its own PipeWire or PulseAudio, and restarts a desktop that exits with a growing backoff. The GPU policy the base image's entrypoint applied moved into the launcher (GLX vendor on the X server's render node, Zink where Vulkan presents, NVIDIA's EGL, Vulkan, OpenCL, and GBM loader files written into the runtime directory without root), and it now moves a Wayland session to X11 only where a vendor's EGL renders on the render node in hardware, NVIDIA's driver drives the device, or the probe wedged, so a VM's display-only card no longer costs a session its Wayland backend.
  • From a bundle, the session takes its programs from the bundle: Xvfb, Xwayland, dbus-daemon, PulseAudio and its modules, and CUPS, so a host needs no X server, sound server, bus, or print scheduler of its own. The desktop's PATH gains only the bundle's bin/, so applications keep the host's programs.
  • ALSA applications are bridged to the session's PulseAudio (alsa-plugins built into the bundle against alsa-lib 1.2.14) where the host has no plugin of its own, and a PipeWire session through pipewire-pulse; a placeholder sink catches an application that opens audio before Selkies makes its sinks, and is moved over afterwards.
  • The quarantine (--quarantine-xdg off|targeted|full) keeps a standalone session on a machine with a desktop of its own out of that desktop's configuration: targeted layers the quarantine beneath the user's XDG homes and runs dconf and xfconfd as the session's own over the user's stores, so GNOME, MATE, and XFCE sessions keep their density and theme without changing the user's; full moves all four XDG homes into it. The xsettingsd rewrite and the window manager theme reloads reach only the session's own display, where before they could rewrite a desktop on another one.
  • The runtime directory is always 0700, and --runtime-dir refuses /, the home directory, or a parent of it.

Window manager (selkies-wm)

  • One engine for both backends, answering every decision point through one interface: focus with openbox's rules, stacking in openbox's layers, smart and cascade placement, move and resize with edge resistance and size hints, maximize, fullscreen, shade, minimize, the window menu, root menu, window list, and Alt-Tab with an on-screen display. It reads the openbox-format rc.xml and menu.xml an image already ships (pipe menus included), serves zwlr_foreign_toplevel_manager_v1, ext_workspace_manager_v1, and shortcuts-inhibit, and draws frames and menus in the shell's theme and language. A panic in the policy ends window management, not the stream, on both backends.
  • Quick tiling: dragging a window to an edge shows a translucent ghost gliding into the half, quarter, or maximize zone it would take (after the pointer rests 100 ms, so crossing a shared monitor edge does not tile), and SnapToEdge walks the same zones from the keyboard.
  • Virtual desktops (GoToDesktop, SendToDesktop, ToggleOmnipresent), with 200 ms slide transitions on Wayland, and placement memory: a window opens where its application's last window stood.
  • Window effects: maximize, restore, and tile glides, a close that shrinks and fades, and minimize toward the window's own taskbar button.
  • Key binding overrides in ~/.config/selkies-wm/keybinds (rebind, disable, or add a command), re-read within a second.
  • A built-in right-click menu (New Folder, Desktop Settings, Change Wallpaper, Keyboard Shortcuts, Show Desktop, the installed applications by category, and the open windows), so an image needs no menu.xml; an image's or user's menu.xml adds its entries above the built-in ones and replaces only the submenus it redefines.
  • Desktop or application alone, switched at runtime: --desktop picks the mode a session starts in, and a "Desktop mode" entry in the root and window menus (and the DesktopMode, ApplicationMode, and ToggleDesktopMode actions) starts or stops the shell while the application keeps running. Switching to the application alone tiles the four windows used last per output and lays any more out in a centered cascade; the choice is kept for the next session. GET/POST /api/session reports and switches the mode from the control plane, and the session's launch environment is written to $XDG_RUNTIME_DIR/selkies-session-env.json so an orchestrator can start applications into it.
  • The autostart is supervised: it counts as running until everything it started exits, --app-restart restarts it with backoff in application mode, the root menu offers Relaunch once it has exited, and a restarted server leaves the application an earlier one started running.
  • Kiosk mode: --wm-maximize (on by default) maximizes the application's windows in application mode, and SELKIES_WM_MAXIMIZE=true|locked keeps them maximized on every desktop and refuses every way out (unmaximize, minimize, move, snap, shade, show desktop), drawing no minimize or maximize button.
  • Features an image takes away: --wm-decorations=false frames no window, --wm-buttons lists the title buttons shown, --wm-menus=false drops the binds that open menus, and --wm-keybinds=false drops the binds that close windows, open menus, or start programs.
  • The desktop follows the browser's light or dark scheme until its user picks one: the primary page sends its prefers-color-scheme (or the dashboard theme the user picked), and the shell, the window frames, the GTK and Qt settings, and the Settings portal follow, live. The Theme page's "Follow the browser" switch hands the choice back, and --color-scheme locks one value or leaves the desktop alone (by @queitsch, #586).
  • X11 applications behave under the Wayland window manager: menus, dropdowns, and tooltips open where they belong rather than at the top-left corner; clicks are no longer turned into drags by duplicate motions (wx GL canvases); presses on X11 popups reach the client; the pointer no longer freezes when an X11 context menu opens; a tray popup that grabs the keyboard gets keys; pointer confinement is honored; Steam hiding to the tray keeps one taskbar entry; keyboard focus follows the X server's input focus, so Steam moving focus between its windows no longer sends every X11 window's keys to one of them; and Xwayland answers as "Openbox", so Chrome and Edge draw their own title bars as they do on X11.
  • On the X11 window manager, a newly mapped window really receives keyboard focus, globally active clients (WM_TAKE_FOCUS) are asked to take it and the handoff is honored, frames start at the client's initial pixel geometry so shaped clients are recognized (by @nickrunning, #673, #675), toolkits that draw their own frame (GTK, browsers) are placed by their visible area rather than their shadow, so a tiled browser fills its slot, and a borderless window the size of its output (an FNA game on SDL3) covers the bar while focused.
  • Moves and resizes follow the client: a move waits on the configure that carries it, so a client that snaps to cells (foot) keeps following; a resize follows what the client commits and holds the dragged edge until it answers; a Wayland resize is paced to one outstanding configure sent at most once per stream frame, where a browser reporting the pointer many times a frame had some clients redrawing hundreds of times a second; and frames are assembled from cached, stretchable pieces, so a resize draws and uploads nothing new.
  • Windows opening maximized or fullscreen are sized to their work area before their first configure (a Chromium-based browser last closed maximized crashed on every launch), leaving fullscreen no longer restores to 0x0, and windows keep their place as displays are added and removed.
  • Drag and drop out of a Wayland client works: the compositor used to cancel every start_drag, so drags between windows, from the file manager or desktop, or into a browser ended as they began. The drag icon is drawn into the stream.
  • Gamepads and the camera reach session applications under --wm: the session environment preloads the input interposer, fake-udev, and the V4L2 interposer before the session bus starts, so bus-activated applications get them too, and the apps panel and cmd launches start in the window manager's environment.
  • Xwayland starts on Mesa's EGL with shared-memory buffers where there is no render node, where the NVIDIA EGL library a container runtime injects otherwise crashed it.

Desktop shell (selkies-desktop)

  • Native on both backends (layer-shell and wlr-foreign-toplevel on Wayland, x11rb on X11), drawn through the shared selkies-draw rasterizer: a panel with a start menu, taskbar, pager, tray, notification bell, volume, and clock; a quick launcher on a tap of Super that searches recent applications and runs commands; the wallpaper; a file manager; and a Settings window (Theme, Colors, Windows, Wallpaper, Panel, Desktops, Shortcuts, Files, Language, About) with a shortcut editor that captures chords.
  • Appearance: Dark, Light, Ember, Mint, and Graphite schemes; a 44 px bar that floats by default and glides to attach to its edge while a window needs the space; a bar on every display, each listing its own windows; and wallpaper packages whose light and dark variants follow the scheme. The theme is exported to GTK settings, XSETTINGS, GSettings, and a built-in Settings portal, so GTK 4, libadwaita, Qt 6, Chromium, and Electron switch scheme and accent live.
  • Notifications are served by the shell itself (org.freedesktop.Notifications): animated popups with actions and urgency, an unread count, a notification center with history, and Do not disturb, so no notification daemon is needed.
  • The tray takes D-Bus items as the session's StatusNotifierWatcher and host, beside XEmbed icons, so Qt, Chromium, Electron, libappindicator, and native Wayland applications appear there with their dbusmenu menus; calls run on worker threads under a 5 s timeout, and what an item sends is bounded.
  • Desktop icons behave like a folder: click, Control-click, Shift-range, and rubber-band selection; Open, Open with, Cut, Copy, Paste, Rename, Delete, and Properties (sizes, times, permissions, owner, an image's dimensions, a folder's total measured on a worker thread); dragging onto the grid or out to another application over the Wayland data device or XDND; and a copy-or-move prompt. The start menu adds Add to desktop, reorderable favorites, and a first launch that pins the installed browser and a terminal.
  • An image layers its own defaults under /etc/xdg/selkies-desktop/config, beneath the user's file: terminals = false hides terminal emulators, run_command = false drops the launcher's command row, settings = false hides the settings, and desktop_launchers places named launchers on the desktop once.
  • CPU: the tile ghost is drawn once per glide as a sliced picture the compositor stretches, instead of rasterized and uploaded 60 times a second; the bar's glide and the notification cards are paced to a frame period (the bar drew about 170 frames for a 220 ms move) with their damage coalesced; a selection box redraws only its changed edges; the launcher layer redraws only what changed; and the shell no longer holds a core busy after a configuration reload or a last notification fading out.
  • On X11, shell surfaces keep their pixels in a server pixmap that backs the window, so an exposure is repainted by the X server instead of re-uploaded: on a GPU screen, dragging a window across the desktop had exposed hundreds of thin bands a second. Tray icons no longer show black where clear (Steam), and the bar and start menu are drawn opaque where no compositing manager runs.

Desktop images

  • Selkies' own desktop on both backends, with Firefox and Google Chrome, GNOME Console as the terminal, GNOME Text Editor, Loupe, Papers, Amberol, File Roller, and GNOME Calculator (libadwaita applications that follow the shell's scheme and accent), 7zip beside unrar and unar, and the command-line tools a terminal expects. Chrome's launcher adds the Wayland platform where the session has a Wayland display, its accessibility tree while Pelorus reads the windows, and clears a profile lock an unclean stop left behind, so a recreated container no longer has Chrome refuse its profile.
  • A patched XLibre Xvfb keeps the screen in a sealed memfd and shares it read-only with the capture through the SELKIES-FRAMEBUFFER extension, with a 16x16-tile watch and an eventfd. It replaces Xvfb's -shmem buffer, a mode 0777 segment any local account could read and write. Idle, the X server fell from 0.074 cores to none. Its RENDER glyph hashing uses OpenSSL's libcrypto (a 4096-byte glyph 10.1 to 6.0 µs), and the distribution's Xvfb is diverted so a package upgrade no longer installs over it.
  • Smaller: Noto's -extra packages are dropped and only the regular CJK sans is kept (fonts were 811 MB, a quarter of the image), man pages, info manuals, and documentation are excluded from every package, including those a session installs later, and the base image's recursive chown no longer duplicates hard-linked files (Ubuntu 26.04's Rust coreutils had grown the layer by 1.3 GB).
  • proot-apps 0.5.10 ships proot-next, which runs without ptrace or a capability, so the apps panel works in containers without CAP_SYS_PTRACE; at Yama ptrace_scope 2 it runs restricted.
  • GTK's dark scheme is named Adwaita with the dark preference rather than Adwaita-dark, which GTK 3 does not build in, so dark desktops no longer fall back to light where gnome-themes-extra is absent (a proot application's root), and Chromium starts dark.
  • Image layers that fetch from floating sources (distribution archives, the browser repositories, proot-apps) are rebuilt when those sources change rather than reused from cache.

Packaging and distribution

  • The bundle: one directory tree per architecture and C library that runs a whole session on a bare host. The X servers and xkbcomp are statically linked against everything but the C library, so nothing they carry can clash with a host GPU driver; libgbm and GL are reached through run-time loaders, so a host without them runs the X servers in software. Every library a bundle carries is built from a pinned upstream release, and the build fails if it would carry one from its builder's distribution. The bundle never carries libxcb, so on Jetson's L4T X and EGL stack the driver's own is the only one in the process. CI starts a session from each bundle on pristine Debian, Ubuntu 24.04, CentOS 7, AlmaLinux 8, and Alpine 3.22 hosts.
  • One executable file, selkies-<version>-<arch> (or -musl), that runs as downloaded: its first start unpacks the bundle into a private directory named by its SHA-256, checks the tree is owned and writable by the user alone, and executes the server by descriptor (fexecve). The file is about 95 MB, and the first start takes 0.4-0.5 s longer than later ones.
  • The wheel, the native packages, and the AppImage are the bundle repackaged, not separate builds. The packages depend only on the C library and its C++ runtime, and are install-tested on Ubuntu 24.04 and 26.04, Debian 8, bookworm, and trixie, Fedora 43, AlmaLinux 8 and 9, CentOS 7, and Arch; the rpm uses an xz payload EL7's rpm can read, and the deb takes libgcc-s1 or libgcc1.
  • glibc 2.17 on x86_64 (manylinux2014): the wheel, the packages, the AppImage, and the single file run on CentOS 7. aarch64 stays at glibc 2.28, since manylinux2014's GCC 10 cannot build the Armv9 and SVE2 kernels of x265, libvpx, and SVT-AV1.
  • Codecs are pinned and patched everywhere: x264, x265, libvpx 1.17.0 (heap overflow and out-of-bounds write fixes in the VP9 encoder's resolution change and the VP8 and VP9 decoders the virtual camera feeds, plus Neon and AVX2 paths: software VP9 at 57 fps in Chrome 9.06 to 7.25 ms median over WebSockets), SVT-AV1 4.3.0, and dav1d 1.5.4. pixelflux still builds against a distribution's unpatched x264 (0.155 and newer), x265, and SVT-AV1 for packagers, detecting each patched API and copying input where it is absent.
  • libpulse 17.0, client only, with a codec-less libsndfile: a manylinux wheel carries libpulse and libpulsecommon where 2.2.1's musllinux pcmflux wheel carried nineteen libraries.
  • Every commit to main is published as a pre-release tagged with its short hash, carrying every artifact and its attestation, never marked latest.
  • The developer reference (rustdoc for the server and TypeDoc for the web client) is hosted for main and the latest release; older releases' references are attached to their releases as selkies-<version>-reference.tar.gz.

Pelorus

  • A new agent interface, served under /pelorus/ with its API under /api/pelorus when --pelorus is on (off by default): the desktop described as text, the window manager's geometry joined with each application's accessibility tree, one line per control with a reference to click it by; tools on it (look, click, type, key, scroll, drag, window, launch, screenshot, wait, a shell only where command_enabled is on, and the apps catalog); and an agent loop that runs a model and streams what it does.
  • Any provider: Anthropic's Messages API, or an OpenAI-compatible endpoint (OpenAI, Gemini, OpenRouter, Groq, Mistral, DeepSeek, xAI, Together, Fireworks, Cerebras, or a local ollama, LM Studio, or llama.cpp), from the --pelorus-* settings or saved from the page; --pelorus=true|locked fixes the model to the server's configuration.
  • Selkies' own interface is described too: the shell's bar, start menu, launcher, popups, dialogs, settings, and file manager, and the window manager's open menus, without the accessibility bus.
  • A page of its own: conversations in tabs, folded steps with a screenshot beside each action, and model and effort pickers searched from the provider's own list, plus a panel first in the sidebar. API keys saved from the browser are sealed with a non-extractable Web Crypto key in that browser, so the server stores only ciphertext.
  • Chromium, Chrome, and Electron applications launched from desktop entries get --force-renderer-accessibility under Pelorus (or SELKIES_ACCESSIBILITY=1), and the base image carries the accessibility bus.

Congestion control

  • A stream opens below its ceiling and climbs. It starts at the rate its page remembered, otherwise 4 Mbit/s, and doubles each second until the first queue or loss, reaching the default target in about a second and 30 Mbit/s in about three. Starting at 30 Mbit/s into a 5 Mbit/s path, p99 latency fell from 3170 to 243 ms for a 1080p window and from 6905 to 352 ms for a scrolling page.
  • The steer backs off once. A standing queue cuts a constant-rate display to the headroom of what the path delivered and holds while it drains, rather than halving and sawing: a 30 Mbit/s ceiling on a 5 Mbit/s, 60 ms link fell to 2587 kbit/s on its first queue, and now backs off to 4280 kbit/s and holds 4.4-4.5 Mbit/s. A clean tick climbs 1.5x a second.
  • CRF displays are steered too. With congestion_control on, the steered rate reaches the encoder as a peak while the rate factor still chooses the picture wherever the path carries it; under a peak never reached, x264's frames are byte for byte the uncapped session's. x264, libvpx, NVENC (ConstQP until the peak binds, then CBR at the peak without a key frame), and SVT-AV1 (#561) take the peak. Before, a CRF stream into a 5 Mbit/s path stood tens of seconds of queue. Once the peak lets go, blocks coded coarse while it bound are refreshed at the session's quality without a key frame (#564), and a capped key frame is at most two encodes: at the 4 Mbit/s opening peak a 1080p desktop IDR is 28 kB instead of 322 kB.
  • A capped stream's peak follows the path. Its path is sounded like a cut constant-rate stream, under a ceiling its own largest recent frames set: before, the peak stood at its opening rate or wherever a burst had lifted it (50 Mbit/s through a 12 Mbit/s hop, where later changes waited up to 658 ms behind their own frames). Until a path first queues the probe climbs four-fold a second, so at 2560x1440 over loopback the peak opens in 4.6-5.1 s instead of 14.1 s.
  • A cleanup runs again when the target doubles, so a screen that went still under a cut link no longer stays blurry after it recovers (x264 1080p text, 26.17 to about 47 dB), and a display streamed to more than one page keeps its cleanup at the configured rate instead of up to 4x sized to the owner's link.
  • A scheduled key frame due while the screen is still waits for motion, no longer throwing away the refined picture every interval: an x264 CBR 18 Mbit/s still phase at 2560x1600 went from four 261-448 kB key frames, a 16.8 dB picture, and a 1.79 s worst queue to no key frame, 56.0 dB, and 0.41 s.
  • WebSockets: audio stays live through a squeeze (#620). The page reports its clock and the bytes it has received in each frame ack, so the server knows what is in flight even past a TCP-terminating proxy; once a path runs 100 ms past its least round trip, video is held back until what is in flight can cross, and audio never is. Audio leaves ahead of video in each socket's outbox and is dropped once 200 ms stale, and each socket's kernel buffer holds at most 64 KiB unsent. On a 20 to 1.5 Mbit/s step held 5 s: sound heard live 0.19-0.36 s of the 5 became 3.8-4.3 s, picture median age 1.1-1.5 s became 24-146 ms, and after recovery the player dropped 7-20 frames where it dropped 183-355 and no longer played fast-forward.
  • WebSockets: a returning path is sounded with padding apart from the stream's target, landing on what the path carried while a short queue stood; content probes past it only after it has filled that rate for a while. Over a 10 Mbit/s relay narrowed to 4 for 5 s and returned, the oldest picture on a light screen went from 204-663 to 80-212 ms; a link that narrows again while a cut drains is backed off at once (live again in 2.25 s at the median, from 3.95).
  • WebSockets: a busy uplink is not video congestion. Acks carry how long the way back held them, which the gate and the steer subtract, so an upload filling the page's uplink no longer cuts an 8 Mbit/s stream to 1.5-2.8 Mbit/s. Software H.264's relay hands the writer only frames the path has room for, ending the bursts the gate released six or seven times a stretch.
  • WebRTC paces at the steered rate, not the configured one, reads each peer's queue every 100 ms, and drops stale frames at the sender while a backlog stands. Through a 20 to 1.5 Mbit/s step, picture age fell from 2.2 to 1.1-1.2 s on x264 and from 1.8 to 0.6-0.7 s on NVENC; on a 1.5 Mbit/s link behind a 150 ms queue (#574), NVENC on a Tesla K80 went from 0-6 fps at 1.2-2.9 s old to 57-60 fps at 60-71 ms.
  • WebRTC repairs stay within the path. FlexFEC density ignores loss a standing queue caused, and retransmissions and FEC under a queue-measured cut are bounded to half the steered rate (10 to 4 Mbit/s: longest freeze 1944 to 695 ms); round trips are measured against the last eight sender reports, so they are still measured behind a deep queue; RED is shed once audio takes a quarter of a cut path (frames decoded during a squeeze 4-8 to 21-30 fps); a probe neither starts nor counts while the pacer is braked (by @DeMonkeyCoder); and the target is held on a tick the pacer dropped video in (by @DeMonkeyCoder).
  • WebRTC audio rejoins live after congestion (#620): once a deep queue drains, the audio sender moves to a new SSRC so the browser starts a fresh jitter buffer. After a 20 to 1.5 Mbit/s step, heard audio was 1.87 s late at recovery and still 1.33 s late 19 s on; it is now live within 0.25 s, in Chromium, Firefox, and WebKit.
  • Below about 28 fps, a capped CRF or software H.264 CBR stream is no longer clipped by the rate bridge, whose window is now 0.25 s or seven frames, whichever is longer (#562).

WebSockets

  • One reference frame for one page: a display one page streams keeps one reference on software, VA-API, V4L2 M2M, and Tegra encoders, since every client decoded against the whole buffer on every frame and TCP loses nothing. At 2560x1600 FFmpeg's decode fell from 0.74-0.78 to 0.39-0.48 ms a frame, and decoders that hold their whole buffer before showing a picture (GStreamer's hardware decoders in WebKitGTK and WPE) no longer show each frame several late.
  • Several pages get the encoder's own depth. Once a second page streams a display, x264 reopens in place on the key frame the joining page starts from and a hardware session restarts its capture, so a page on a narrow link is predicted past instead of forcing key frames on every page: beside a page behind a 2.5 Mbit/s relay, the owner's key frames per 30 s went from 184-209 to 0 on X11 and 2 on Wayland.
  • Loss recovery: a page asking for a key frame leaves the display's common frames until it arrives, so the encoder never pins a reference on frames its decoder dropped, and a lost-frame report the display's 5 ms floor held back is delivered when the floor ends instead of dropped.
  • Firefox's webcam holds its rate: Firefox counts the last message of a burst in bufferedAmount after it has gone, so its camera sustained 0-18 of 30 fps; the page now probes and discounts that residue from every backlog gate (#581).
  • Pages whose Content-Security-Policy forbids workers (worker-src 'none') stream: the session socket, clipboard codec, and H.264 framing probe run on the page, taken only on the policy's actual refusal (by @thejoeejoee, #642, #645).
  • Prometheus counters on /api/metrics per display: key frame requests by cause, decode gate events, and relay runs.
  • A layout pass no longer overwrites a size or frame rate a page requested while it ran (a 90 fps request on a 144 fps primary left the output at 144 Hz in 5 of 5 runs).

WebRTC

  • An in-tree WebRTC stack, selkies-rtc, in place of the aiortc fork: shared UDP and TCP ICE muxes told apart by ufrag, ICE-lite and full ICE, TURN over UDP, TCP, and TLS; DTLS and SRTP; SCTP data channels; zero-copy packetizers for H.264, H.265, VP8, VP9, AV1, Opus, and RED; interleaved FlexFEC; NACK and RTX with second-NACK lost-frame repair; a priority-class pacer; and TWCC in both directions. Its RTP, SCTP, SDP, and STUN parsers are fuzzed continuously, and the SDP and SCTP findings are fixed (a description can no longer amplify to many times its size).
  • Session start no longer waits for TURN: the offer goes once the server-reflexive queries finish, and a relay that lands later is trickled. With the default TURN server unreachable, page load to first frame went from 5.1-5.6 s to 0.15-0.36 s.
  • AES-256-GCM SRTP with Chromium and Edge: the server's order, AEAD first per RFC 8827, now decides, and a 1200-byte packet is sealed in place in 0.32 µs where SHA1_80 took 1.12 µs.
  • Docker bridges are left out of ICE (webrtc_ignore_interfaces, by default docker0 and br-*): Docker's masquerade rewrote checks sent from the bridge address, so a browser paired with that candidate met the server at an address it was never offered (#611).
  • A page reaching the server through one of several public addresses is told the one it used in its host candidates when webrtc_public_ip lists it, and that setting reads commas or spaces (by @DeMonkeyCoder).
  • The page's microphone and camera are received in every format offered: a Chrome page that answered RED and Opus with Opus alone and then sent RED had every microphone packet dropped, which also cut its camera's rate (by @DeMonkeyCoder). Lost camera packets are now asked for again, a decoder's key frame request is passed on as a PLI, and receiver reports are sent (by @DeMonkeyCoder); the receiver no longer sends REMB beside transport-cc, which held the camera at 5.3 Mbit/s against the browser's 17.7 (#520).
  • One cursor: a fresh page no longer shows two (the composited one and its own) until its first pointer lock.
  • The outputs run at the fastest display of the layout, so a 144 fps secondary beside a 60 fps primary is no longer held to 60 Hz.
  • A controller taking over a display is told and sends its window size, instead of streaming at the previous owner's.
  • Safari 27: the Play Stream button appears when Safari refuses autoplay after connecting, no longer stays over a video that started on its own, and returns when Safari pauses the video as audio arrives.

Capture on X11

  • The shared framebuffer. On the images' Xvfb, the capture reads the screen in place, copying only the 16x16 tiles drawn since the last frame and waking on the server's eventfd instead of XShm grabs and XDamage round trips; it falls back to XShm where the extension is missing or the screen is on the GPU, and stream stats name it "Framebuffer". Frames are decided on the tiles drawn rather than a hash of the whole frame (0.84 ms at 2560x1600, and its runs re-sent unchanged frames), so exactly as many frames are sent as painted. Change to frame at 2560x1600, full screen: 8.23-8.98 ms to 6.96-7.24 ms at the median, p99 11.2-11.5 to 8.5-8.7 ms.
  • Straight into the encoder's planes: an 8-bit 4:2:0 x264, libvpx, SVT-AV1, x265, or kvazaar session converts the drawn tiles from the framebuffer into its picture. Drawn to decoded, a 60 fps 1080p window on x264 went from 6.73 to 5.76 ms with the server at about 0.9 cores instead of 1.02; x265 at 2560x1600 takes 3.25-3.36 ms a full-screen change instead of 3.94-4.30.
  • Each frame carries where it changed (framebuffer tiles, XShm damage, and moved cursor and watermark overlays), so encoders refine still areas beside motion on X11 as on Wayland.
  • DRI3 sends a frame when the cursor moves over a still screen, where the composited cursor moved only alongside another change, and no longer creates a Vulkan instance per capture start, which on NVIDIA leaked /dev/nvidiactl and a render node on every reconnect until the server ran out of descriptors (#588).
  • Layouts without cvt or gtf: modelines are computed in process (CVT reduced blanking at the target refresh rather than a fixed 60 Hz) (#539), and a logical-monitor layout sets the mode and swaps the monitors under one server grab, held under 4 ms, so desktops that lay out from the CRTCs no longer stay laid out for the old mode (#582).
  • A lone primary display uses the physical output's own CRTC and automatic monitor, rather than a selkies-primary logical monitor that desktops matching monitor and output names (Plasma 6's libkscreen) never created a desktop for (by @xxtitan, #668).
  • Multiple displays: a secondary joining a running session is reachable by the pointer and drags, a shrinking Wayland primary is fitted before its secondary is placed, and a root capped below the requested size tells the page its fitted size (by @DeMonkeyCoder).
  • Display scaling under XFCE: an operator-set density is applied once the XFCE session has its bus, and a density the home keeps is recorded when startup cannot write it (by @DeMonkeyCoder, #628); the first settings a page sends always carry the density the desktop is asked for, so a HiDPI page at 200% zoom keeps 96 DPI across reloads (by @10bn, #629).

Capture on Wayland

  • The covering window is the frame. Where one opaque client surface covers exactly the output with nothing drawn over it, the frame is that client's buffer, not a composite: a zero-copy session takes the dmabuf and the software renderer reads the shm rows in place, decided every frame like direct scanout. On an RTX 3060 at 1920x936, the compositor's share of a frame went from 0.30 to 0.07 ms on NVENC behind a covering Chrome and from 0.80 to 0.03 ms on x264 behind a scrolling terminal.
  • A client drawing at the display's cadence is followed frame for frame: a click, a pointer motion, a caret blink, or a keystroke had knocked a 60 fps WebGL page in Chromium to 48 fps for several frames. Frame callbacks wait only for the clients whose commit is pending, and the frame timer wakes at every window boundary, so callback clients no longer lose a frame each second.
  • A GL renderer that refuses the zero-copy render targets falls back to readback (still hardware encoded) after a few refusals instead of streaming black, and remembers it (reported on Alder Lake-N under i915, linuxserver/docker-webtop#453).
  • Buffers the encoder cannot read are composited: a tiled or compressed buffer is never imported as linear (on Arc, a maximized client in Mesa's compressed Tile 4 encoded as noise), and on Intel's i965 (Haswell) a fullscreen GTK 4 or Vulkan application's Y-tiled buffer no longer streams a checkerboard.
  • The clipboard reaches X11 clients: a Wayland client's copy and the browser's are announced to Xwayland for CLIPBOARD and PRIMARY, so X11 applications (Steam's Chromium among them) paste them.
  • A missing cursor theme falls back to the default instead of the red placeholder.

Host capture

  • GNOME hosts grow displays: where the ScreenCast portal offers virtual sources and Mutter's display configuration is reachable, a second display opens a virtual monitor at exactly its size, is arranged into Selkies' layout, follows its resizes, and closes when the display goes idle (by @sgtslaughta, #632).
  • Absolute pointer motion goes to the EIS device whose region holds it, since Mutter gives each stream its own device and dropped motion outside it, so a second monitor was dead to the pointer; motion follows an output's live position after the host is rearranged (by @sgtslaughta and @10bn, #627, #631). A host with two outputs no longer refuses the second display.
  • The virtual pointer sends real timestamps, so a release-gated root menu's items can be clicked.
  • The host is no longer asked to paint its cursor on portals that honor the request (xdg-desktop-portal-kde 6.6), so the cursor's metadata and the page's sprite arrive again.

Frame pacing

  • A reserve of extra frames. A change landing in a pacing window that already took a frame is sent from a reserve of two frames, refilling a thirty-second of a frame per period, so a source slightly faster than the cadence or a keystroke during an animation no longer locks every later frame behind it. Draw to grab at the median and p95 on X11, x264 at 60 fps: a 60.1 Hz drawing 4.66/13.8 to 0.20/0.40 ms, a 60 Hz Present client with keystrokes 12.1/16.0 to 0.14/0.39 ms.
  • Typing over an animation no longer delays its frames: once the reserve is spent, a change is held at most 1.25 periods and sent with the source's next frame (#585: animation wait 4.6-15.2 ms to 0.07 ms), and a source drawing faster than the lock no longer earns frames the page never paints (#579: 58.80 to 57.01 fps sent at a 57 fps lock, server CPU 43.2 to 42.4%), on host capture too.
  • A window opens a quarter period early, so a 60 fps animation on Xvfb reaches the capture in 1.76-1.87 ms after its draw instead of 2.6-2.8 ms in some clock phases.

Hardware encoders

NVIDIA

  • Still blocks beside motion are refined through NVENC's QP delta map on H.264, HEVC, and AV1: 1080p text beside a playing video on an RTX 3060, H.264 at 8 Mbit/s 33.1 to 45.9 dB and HEVC 38.4 to 48.0 dB, bytes within 1% at constant rate. Each picture carries its own map, so blocks deferred under a capped peak no longer stay at QP 51.
  • The still-screen cleanup matches x264's quality at paint-over indices 15-24 on Ampere (by @DeMonkeyCoder, #646).
  • Wayland shm uploads are page-locked through a private mapping, fixing wrong pixels after a pool was resized or replaced at the same address and running faster: 1080p on an RTX 4070 Ti SUPER, 3.21 ms a frame against 3.67 unpinned (by @junkerderprovinz, #608). The first upload after growing no longer fails with CUDA_ERROR_INVALID_VALUE, and the dmabuf import cache is bounded.
  • The DRI3 descriptor leak on each reconnect is fixed (#588).

Intel (iHD)

  • H.264 at 2160p above 64 fps under constant rate no longer corrupts: iHD's level table ends at 5.2, and naming 6.0 handed its rate control a maximum frame size of 0, so 29 of 30 frames were undecodable on an Arc A750; the driver is told 5.2 while the stream declares what it needs.
  • H.265 no longer decays into smeared text and pink and green blocks: slices filter across their edges as iHD's reconstruction does. Its key frames no longer segfault the server on an N97 (a co-located reference read past iHD's table).
  • A constant-QP H.264 session names at most three regions of interest on VDEnc (Gen9 through Gen12, the N97 included): more overflowed a driver array and aborted the server when a window was dragged across a refining screen.
  • AV1 and VP9 search the frame before the reference as GOLDEN, as FFmpeg does: a 1080p scroll under a still panel on Arc went from 31.4 to 12.2 kB a frame on AV1 and from 47.6 to 24.7 kB on VP9, each at more quality and the same encode time.
  • The still-screen cleanup matches x264's: Intel's H.264 has a curve of its own and H.265, VP9, and AV1 read finer below index 25, where the cleanup had settled 1-3 dB under x264's on Arc and Alder Lake-N; constant-quantizer AV1 runs CDEF only from quantizer 160, below which a still screen was recoded every frame and decayed.
  • Constant-rate target changes: a congestion change is taken with the next picture instead of a new sequence, ending a key frame every second or two on constrained paths (by @DeMonkeyCoder), and a change within a sequence gives rate control a one-second buffer, ending bursts of many times the target when motion resumed after a cleanup.
  • H.264 regions of interest refine still blocks where the driver offers them: text beside video on an N97 at CQP 41.3 to 47.1 dB.

Intel (i965, Haswell and older) (#658)

  • Zero-copy sessions stream a picture: i965 accepts a DRM PRIME 2 import it does not list and returns a blank surface, so PRIME 2 is used only where the driver lists it.
  • CBR codes each frame once instead of recoding one still frame forever, and forces Turbo, the only way that engine's constant rate holds.
  • The color i965 actually converts to is declared: it ignores the requested colorimetry and converts BT.601, so the brightest and darkest greys are no longer crushed (diagnosed and first fixed by @boypt, #676).

AMD

  • DCC-compressed client buffers are encoded in place on Wayland's direct path through the DRM PRIME 2 descriptor on H.264 and H.265 (Radeon Pro VII, Mesa 26.0.8), where every such buffer was refused.
  • The stream no longer stops at some fractional capture rates, where Mesa's header reader misparsed the packed timing fields and spun the encode thread (about 7 in 100 rates) (#574).
  • The still-screen cleanup matches x264's on VCN 2, and H.265 at the default index now cleans up after a scroll (by @DeMonkeyCoder, #644).
  • H.264 streams log their frame_num range: 65536 where pixelflux writes the SPS, 128 where radeonsi writes its own (#541).

NVIDIA Jetson

  • Key frames on request are real IDRs with their SPS and PPS (the vendor's force-IDR control was accepted and ignored), runtime requests are honored on every codec, and AV1 repeats its sequence header on key frames with IVF framing (AGX Orin, L4T R39.2.1; by @Jocab-B, #657).
  • --keyframe-interval 0 on Tegra and V4L2 M2M is documented as the 10 s it is, not an infinite GOP.

Software encoders

  • The block ledger refines still blocks beside motion. x264 takes per-macroblock quantizer offsets: 1080p text beside a playing video at CBR 2 Mbit/s 18.0 to 40.8 dB, 16 Mbit/s 38.8 to 46.7 dB, CRF 25 39.6 to 49.4 dB. When the video stops, the ledger's work is kept instead of a key frame (431 kB rather than 1,648 kB, 4.7 s of a 12 Mbit/s link). x265 (8 Mbit/s 31.1 to 36.3 dB), kvazaar (CQP 38.5 to 48.0 dB), and VP8 (8 Mbit/s 33.5 to 42.4 dB) refine through their own maps.
  • A patched x264, bit for bit identical in what it codes: quantizer offsets without the adaptive-quantization pass, macroblocks the ledger marks constant coded directly, copies and lowres filtering only of what changed, lookahead costs of unchanged blocks reused, and NV12 encoded in place (now on aarch64 too). A frame where a 256x256 area changed at 2560x1600 takes x264 2.02 ms where it took 4.08, and a 24-pixel scroll 4.23 ms where it took 5.14.
  • x264 finds scrolls and moved windows: UMH motion search over 64 pixels in place of the diamond over 16 took a full-screen text scroll from 5.01 to 3.48 Mbit/s at slightly more quality.
  • Constant-rate x264 uses an eight-frame VBV where it coded a moving picture at half its target (a 1080p window at a locked 4 Mbit/s 1.95 Mbit/s at 30.4 dB became 3.52 at 34.6), holds moving frames at the paint-over quantizer rather than spending far past what the eye takes (a 30 Mbit/s 1440p scroll 22.3 to 13.5 Mbit/s with the same cleanup), and no longer has a second reconfigure revert the first. Constant-quality x264 no longer sends a key-frame cleanup after its paint-over (51.3 dB kept instead of 48.3 after a 2.7 MB key frame).
  • libvpx codes clean blocks as skips and copies only changed blocks in its lookahead: a still 1080p frame on eight threads 1.57 to 0.90 ms on VP8 and 1.94 to 0.63 ms on VP9. x265 encodes in place and skips clean blocks (2.8 ms instead of 5.7), and SVT-AV1 copies only the blocks left variable (0.52 to 0.025 ms at 2560x1600) and skips clean superblocks at a constant quantizer; its constant-quantizer frames at sizes a superblock edge cuts are decodable again.
  • Color conversion runs on a pool of its own with as many threads as bands, instead of a per-CPU global pool woken every frame: x264 takes 9-11% less CPU and 61-77% fewer context switches per frame on a 16-thread host, VP9 and AV1 4-8% less CPU (by @DeMonkeyCoder, #559), and x264 conversion at 2560x1600 runs 0.98 to 0.62 ms in parallel bands.
  • On a distribution's unpatched x264, quantizer offsets apply through adaptive quantization at near-zero strength, where capped still frames ran up to 9x past the peak.

Audio

  • A capture sink the server creates is the default sink, so applications play into it; where another sink already existed the stream stayed silent until a client sent microphone data (by @DeMonkeyCoder).
  • The session's PulseAudio keeps its pools in POSIX shared memory, so audio reaches the monitor recorder zero-copy instead of as a socket copy logged as an error on every low-latency recording stream.

Input

  • IME candidates open at the remote caret (#667): on Wayland the compositor advertises text input v3 and sends the focused field's caret; on X11 --atspi-caret reads it from AT-SPI (GTK 3, Qt 6, and Chrome with renderer accessibility); without either, candidates open where the stream was last clicked.
  • Scrolling matches the host (#659): Wayland touchpad strokes and high-resolution wheel steps scroll as far as on the host (Chromium and GTK 3 scrolled 12x too far, one notch 1,440 px), Firefox's and WebKitGTK's touchpad strokes reach the session at Blink's scale, flicks fling, a Firefox notch no longer scrolls twice, and Blink's whole 15 px steps are no longer taken for a touchpad.
  • mac_ctrl_click_as_right_click sends a Control-click from an Apple client as a plain right click (by @cybirdcosmo, #656).
  • Touch: a quick tap is timed by its events' timestamps, so a phone busy decoding no longer drops taps (70-90 ms taps handled 0.5-0.8 s apart on a Pixel) (#565), and a tap whose lift is handled after the long-press timer stays a tap (by @junkerderprovinz); a lone finger resting 250-750 ms and lifted in place clicks, as native controls do; and the floating keyboard button can be dragged again.
  • iPad and iOS raise the on-screen keyboard again (#609), and on a Surface the floating keyboard button leaves once the keyboard is reattached.
  • Pointer in an embedded page: Chromium's raw positions in the top page's coordinates no longer make held drags leap by the frame's offset.
  • Gamepads over WebSockets: a token holding several slots drives its first, as over WebRTC.
  • The clipboard: the first copy after a push or upload from the clipboard box is sent instead of swallowed, and over WebRTC a newer copy no longer waits behind a whole window of an older large one (a 4.2 MB image over a 20 Mbit/s, 100 ms relay in 1.84 s instead of 6.63).

Virtual camera

  • webcam_max_bitrate (default 2500 kbit/s) caps the camera on both transports; the WebRTC offer had let the camera take up to 300 Mbit/s of the client's upload (by @DeMonkeyCoder, #630).
  • A stalled camera's readers are kept fed with its last picture, then black after 5 s, so Chrome-based applications, which end the track after 10 s without a frame, keep it across a page reconnect or a stall (by @DeMonkeyCoder, #643); the repeat stops when nothing reads the camera.
  • With webcam_on_start=demand, a v4l2loopback device with exclusive_caps=1 is primed with a black frame, so applications find a capture device and the demand can start (#527).
  • The V4L2 interposer's DQBUF returns within 100 ms when the stream stops, instead of hanging an application that joins its capture thread.

Dashboard and web client

  • An edge layout: one round button docked to any edge or corner, half out of sight, that fans the tools around it (by @vishalkadam47). The streaming core is TypeScript (by @vishalkadam47).
  • The sidebar holds the wordmark and one menu button (fullscreen, gaming mode, the touch keyboard and trackpad, the layout, translucency, and theme), and a translucency control is in every layout.
  • The theme starts from the browser's light or dark preference and follows it live.
  • Shared viewers' floating buttons follow what the viewer holds: the touch gamepad while it holds a slot, and the keyboard button once it is handed input.
  • Stream sizes past the 4080 cap scale both sides by one factor, keeping the window's aspect (#570).
  • Firefox and WebKit reading the socket on the page no longer request a key frame every 3 s after connecting.
  • The watermark is blended correctly on the GPU composite path (by @GamerJam96, #639).

Files, printing, apps, and recording

  • Transfers keep their share beside the stream. Uploads are paced by the receive window their allowance warrants, so they no longer fill the client's first hop and stall its input: behind a 1 MiB buffer at 6 Mbit/s a small request beside an upload answers in 2-25 ms instead of 1.1 s, and through 16 Mbit/s at 100 ms an upload reads 14.4-14.6 Mbit/s instead of 3.0-5.6. A session's first upload is paced in pieces (150 MiB at 72.0 MB/s against 55.6; found and measured by @junkerderprovinz), and a download through 6 Mbit/s keeps 2.56-2.94 Mbit/s with the stream at 59-62 fps.
  • The apps panel runs server jobs: installs, removals, and updates one at a time with a live console and cancel, sent to every page, the installed set read from disk, and the catalog browsed by category with search. apps_catalog names the catalog (linuxserver's proot-apps by default). An interrupted download no longer lists as installed, and a failed lookup during an update no longer removes the application.
  • Recording on Wayland records every display that streams into files of its own, the primary's with the audio, and a resize starts a new file at the new size rather than writing frames under the first size's header (#660).
  • Printing works on hosts without libcrypt.so.1 (Fedora) and without CUPS (Alpine).

Security

  • Routes are held to the access declared where they are registered, not their path prefix. In secure mode with Basic auth off, a route outside /api/ was served with no credential and handlers took a missing role for a controller: this is how the Pelorus API of a pre-release gave anyone desktop control (GHSA-cw83-85x7-6x8g). Every request now resolves to anonymous, a viewer, or a controller, and 1632 generated requests check every route in every mode.
  • One verb table admits every input message on both transports and at the dispatcher, with the least role that may send it; unknown verbs are refused (GHSA-4hm3-fxr6-2x44's shape). In secure mode, data-channel messages are checked against the token's current role, so a demoted or revoked controller can send nothing in the window before it is disconnected, and a revoked WebSockets page is torn down after 2 s.
  • Every path is opened by descriptor after its check: downloads, listings, printed documents, catalog icons, recording folders, and the web root no longer follow a name swapped for a link between check and use (a web-root file toggled to a link was served in 823 of 4000 requests).
  • A standalone selkies never serves a login nobody chose a password for (GHSA-469m-qcwp-2crf).
  • The WebSockets display id is held to WebRTC's rule before it reaches xrandr; a page behind a proxy that drops Host's port is no longer matched as same-origin from another port; the second display's window opens on the page's own origin; JSON bodies are parsed with bounded nesting; an ICE connection holds at most 64 source addresses; folder archives count directories against their bound; and a dynamic uinput device's socket admits only the session user.
  • The webcam uplink refuses progressive JPEGs before decoding (CVE-2019-13960 in libjpeg-turbo), and the page prints only blob URLs it made itself.
  • Logs carry no secret-adjacent data: clipboard payloads, the TLS key path, ICE credentials, and account ids are gone from them.

pixelflux

  • A Rust library first, with the Python bridge behind the python feature, which the wheels turn on, and an unchanged Python API. The Rust API carries recording, the compositor, the GPU and hardware-encoder probes, Computer Use, screenshots, and the virtual camera.
  • The block ledger and the patched codecs above, and X11's shared framebuffer, read in place and converted straight into the encoder's planes.
  • The Wayland compositor is a window policy's to drive (wm.rs): it decides nothing about placement, focus, stacking, or frames, and with no policy installed every window is fullscreen on its output as before. It runs Xwayland for X11 clients and serves drag and drop and text input.
  • CPython 3.11 stable-ABI wheels: each Linux platform carries one cp311-abi3 wheel, for GIL-enabled CPython 3.11 and newer. The native frame buffer protocol requires the 3.11 limited API; free-threaded interpreters are not supported. Ordinary source builds retain the full CPython API on 3.9 and newer; an older interpreter builds from source rather than using the cp311-abi3 wheel. The platforms are manylinux_2_17 (glibc 2.17, CentOS 7 onward) on x86_64, manylinux_2_28 on aarch64, and musllinux_1_2 on both.

pcmflux

  • The Rust API is split from the Python bridge, behind the python feature, and both configurations are tested.
  • libpulse 17.0 in every wheel: PulseAudio's client libraries alone, with no D-Bus, systemd, X11 client, or codec libraries, and memfd shared memory.
  • CPython 3.11 stable-ABI wheels: each Linux platform carries one cp311-abi3 wheel, for GIL-enabled CPython 3.11 and newer. The native audio-frame buffer protocol requires the 3.11 limited API; free-threaded interpreters are not supported. Ordinary source builds retain the full CPython API on 3.9 and newer. The platforms are manylinux_2_17 (glibc 2.17, CentOS 7 onward) on x86_64, manylinux_2_28 on aarch64, and musllinux_1_2 on both.

Known limitations

  • WebRTC behind NAT may still need a STUN/TURN server; see WebRTC and Firewall Issues. The default WebSocket transport does not.
  • AV1 in WebKit: WebKit answers that it decodes AV1 and then refuses every AV1 key frame. The client treats that as a refusal and steps to H.264 without a reload.
  • WebRTC in Firefox: some Firefox releases paint WebRTC AV1 with the wrong color matrix; the FAQ says which.
  • 10-bit in Chromium: Chromium-based browsers decode AV1 over WebRTC at 8 bits only.
  • Gaming mode holds the keyboard in Chromium-based browsers, Firefox 156 and later, and Safari 26.4 and later. Brave's Shields block the Keyboard Lock API by default.
  • Uploads behind a buffering proxy arrive at the client's full uplink rate before Selkies can pace them; turn the proxy's request buffering off. The sized receive window needs Linux 5.14 or later.
  • Indirect GLX is refused on the images' Xvfb; direct GPU contexts are unaffected.
  • Hosts are Linux only. macOS and Windows support is not implemented.

Reporting

Issues go to https://github.com/selkies-project/selkies/issues, and most of the testing conversation happens on Discord. We can act on a report right away when it names:

  • the transport (websockets or webrtc);
  • the backend (X11 or Wayland), and whether --wm or --desktop is on;
  • the browser;
  • the GPU.

We are in need of maintainers and community contributors. Please consider stepping up, as we can never have too much help!

Contributors

There are 1149 commits, none of them merges, between 2.2.1 (2026-11-04) and f69a721f (2026-12-03), leaving out the pixelflux and pcmflux history up to the releases 2.2.1 shipped (pixelflux 2.2.3 and pcmflux 2.2.1). Commits are counted by the GitHub account that authored each; three made by the claude and one by the codex account inside a contributor's pull request are counted to that contributor.

Handle Name Commits
@ehfd Seungmin Kim 632
@thelamer Ryan Kuba 394
@dependabot 40
@DeMonkeyCoder 29
@thejoeejoee Josef Kolář 14
@sgtslaughta 10
@boypt BEN 8
@junkerderprovinz 5
@vishalkadam47 4
@nickrunning 3
@queitsch 3
@Jocab-B 2
@10bn 2
@xxtitan 1
@GamerJam96 1
@cybirdcosmo 1

What's Changed

  • fix(wm): Use the client's initial pixel geometry for X11 frames by @nickrunning in #673
  • Respect WM_TAKE_FOCUS for globally active X11 clients by @nickrunning in #675
  • fix(pixelflux): Declare the color Intel's i965 VA-API driver converts to by @boypt in #676
  • build(deps): bump glob from 14.0.4 to 14.0.7 in /tests/browserstack by @dependabot[bot] in #677
  • build(deps): bump minimatch from 11.0.5 to 11.0.10 in /tests/browserstack by @dependabot[bot] in #678
  • build(deps-dev): bump minimatch from 11.0.5 to 11.0.10 in /web/selkies-dashboard by @dependabot[bot] in #679
  • build(deps): Bump the actions group across 1 directory with 6 updates by @dependabot[bot] in #685
  • build(deps-dev): Bump @types/node from 26.6.6 to 26.6.11 in /tests in the browser-suites group by @dependabot[bot] in #684
  • build(deps-dev): Bump @types/node from 26.6.6 to 26.6.11 in /tests/browserstack in the browserstack group by @dependabot[bot] in #683
  • build(deps): Bump the web-client group across 2 directories with 7 updates by @dependabot[bot] in #682
  • build(deps): Bump the website group in /website with 4 updates by @dependabot[bot] in #681
  • build(deps): Bump the base-images group across 1 directory with 4 updates by @dependabot[bot] in #680

New Contributors

Full Changelog: 0086579...2.3.0

Don't miss a new selkies release

NewReleases is sending notifications on new releases.