- Context: GDS standardizes all application async I/O (UDisks2, Settings Portal, FileManager1, OpenURI) on a single Tokio runtime owned by
service::task_manager::Supervisor. Enablingashpd'stokiofeature directly keeps the dependency graph free ofasync-io, and GDS constructs its sharedzbus::Connectioninside Tokio and passes it explicitly intoashpdrequests viaOpenFileRequest::connection(...)rather than creating a separate portal connection per call. - References:
zbusTokio runtime support.
- Context: GDS Files exchanges copied/cut file URI lists (
text/uri-list,x-special/gnome-copied-files,application/x-kde-cutselection,application/x-gds-clipboard-id,text/plain;charset=utf-8) and rich remote URI offers without privileged compositor clipboard protocols (wlr-data-controlorext-data-control). - Compromise:
- On Linux Wayland and X11 (plus
zgui-platform-headless), GDS useszgui'sClipboards::read_mimeandClipboards::write_mimewith offer revision compare-and-swap (ClipboardError::Changed) so cut-completion and explicit removal never overwrite a newer clipboard selection. - On Wayland, claiming the selection over core
wl_data_devicerequires active focus and a seat input serial (ClipboardError::NotFocusedwhen unfocused). Because headless Weston E2E sessions and synthetic UI drivers without physical seat serials cannot claim compositor clipboard ownership, GDS retains an in-processSnapshotcache fallback (keyed against the observed platform offer revision) wheneverwrite_mimereportsNotFocused,UnsupportedFormat, orUnsupportedKind. - Non-Linux desktop targets (
arboardfallback) lack multi-MIME file offers and use the same in-processSnapshotcache fallback for file copy/cut metadata.
- On Linux Wayland and X11 (plus
- Context: GDS detects the desktop environment in two separate places with intentionally asymmetric scope:
- Default surface opacity (
85%content /50%sidebar vs100%/85%) recognizes tiling compositors broadly (niri,sway,hyprland). - Hiding client-side
WindowControls(minimize/maximize/close) triggers only on Niri (XDG_CURRENT_DESKTOPcontainingniri, or non-emptyNIRI_SOCKETwhenXDG_CURRENT_DESKTOPis unset) or when the compositor negotiates server-side decorations.
- Default surface opacity (
- Why: Sway and Hyprland setups vary widely in floating rules, titlebars, and keybind expectations, whereas Niri consistently manages window lifecycle without CSD buttons. Keep
WindowControlscapability-driven on non-Niri compositors rather than hiding close buttons across all tiling WMs.
- Why
shell.nixover barenix develop: In an uncommitted working directory or worktree with a largetarget/build directory, running barenix developagainstflake.nixcan copy untracked files into/nix/store.justfileinstead evaluatesimport ./shell.nixdirectly—reading the exact pinned revisions and NAR hashes fromflake.lockwhile sharingpackaging/nix/dev-shell.nix—zeroing store snapshot overhead. - Why
dev-shell.nixresetsNIX_CFLAGS_LINK: Launching a shell from inside FHS wrappers (such assteam-run) can injectNIX_CFLAGS_LINK="-L/usr/lib -L/usr/lib32", causing Nix's linker and ALSA/system libraries to mix incompatible hostglibcsymbols (e.g.,undefined reference to sqrtf@GLIBC_2.43). ResettingNIX_CFLAGS_LINKinside the dev shell keeps builds hermetically bound to the locked Nix toolchain.