grounded
Each candidate's launcher wrapper is self-contained for Wayland and icon resolution
groundingdocs/evidence/files-app/board-2026-09-30/README.md records actual desktop-wrapper launches on the installed board, application process checks for Wayland and application/adwaita/hicolor shares, original native captures showing resolved icons, and operator acceptance of both apps' icons and scrolling. The configuration is in nix/shell.nix's mkFilesAppLauncher, not hand-made files under /home/shell.
Each candidate's launcher wrapper SHALL set GDK_BACKEND=wayland and SHALL include the launched application's own share directory, adwaita-icon-theme's share directory, and hicolor-icon-theme's share directory on XDG_DATA_DIRS, entirely from the Nix configuration.
evidence in this repository scenarios Launcher wrapper environment is fully self-contained
- WHEN either "Files (Nautilus)" or "Files (Portfolio)" is launched - THEN the process that execs the application binary has GDK_BACKEND=wayland set, and XDG_DATA_DIRS includes that application's own share, adwaita-icon-theme's share, and hicolor-icon-theme's share, without relying on any file outside the Nix store under the launching user's home directory
unverified
Both candidates render the active Omarchy theme's dark/light mode and icon variant
why it is unverified the GSettings keyfile backend watches its file for changes, so live pickup by an already-running process is architecturally plausible, but no host, QEMU or board observation in this change exercises "a GTK4 candidate stays open across a real theme switch." Only the next-launch behavior above is verified.
groundingbin/omarchy-theme-set-gnome (pinned upstream revision) is the reference behavior being matched — dark/light color-scheme plus an icon-theme switch, no accent-color recolor. tests/test_theme_gtk.py and tests/test_handheld_app_themes.py are the host-side proof; no on-panel rendering claim is made by this requirement.
The system SHALL derive org.gnome.desktop.interface color-scheme and icon-theme from the same resolved theme generation the existing Foot appearance adapter reads (tools/app_appearance.py), publish them as a GSettings keyfile-backend file inside that generation's app-appearance directory, and re-link each candidate's GSettings keyfile-backend configuration to that file (or, before any theme has been explicitly activated, to a pinned default) immediately before every launch.
scenarios A generation's GTK settings match its resolved mode and icon theme
- WHEN an acknowledged theme generation resolves to mode = "dark" and icon_theme = "Yaru-purple" - THEN that generation's gtk-settings.keyfile contains color-scheme='prefer-dark' and icon-theme='Yaru-purple'
A freshly launched candidate reflects the currently active theme
- WHEN a theme has been activated and acknowledged, and "Files (Nautilus)" or "Files (Portfolio)" is then launched - THEN ~/.config/glib-2.0/settings/keyfile resolves to that theme generation's gtk-settings.keyfile, not to any earlier generation's file or to the pinned default
A fresh home has correct GTK appearance before any theme is ever activated
- WHEN the handheld boots on a fresh home directory, before any theme has been explicitly activated, and a GTK4 candidate is launched - THEN ~/.config/glib-2.0/settings/keyfile resolves to the pinned default generation's gtk-settings.keyfile, matching the pinned bundled theme's mode/icon_theme
An already-open window picking up a later theme change is unverified
<!-- UNVERIFIED: the GSettings keyfile backend watches its file for changes, so live pickup by an already-running process is architecturally plausible, but no host, QEMU or board observation in this change exercises "a GTK4 candidate stays open across a real theme switch." Only the next-launch behavior above is verified. -->
- WHEN "Files (Nautilus)" or "Files (Portfolio)" is already open and the active theme then changes - THEN whether that open window's appearance updates without a restart is not established by this change
grounded
Nautilus is the handheld's one Files entry; Portfolio stays installed
groundingdocs/research/omarchy-quattro-theme-compatibility.md's pinned Omarchy revision and this change's install/omarchy-base.packages read confirm Nautilus is Omarchy's own shipped file manager. Portfolio (portfolio-filemanager) is read directly from this flake's locked nixpkgs package.nix. Cross-build feasibility is grounded in nix build --file nix/files-app-probe.nix ... --dry-run output recorded under docs/evidence/files-app/, not assumed. The decision to keep both by default and remove nnn's old entry outright is an operator decision recorded in this change's design.md/tasks.md, not a board measurement. Showing only Nautilus in the drawer is the operator's 2026-10-26 decision (the-shell-and-its-apps-look-finished).
<!-- Grounding: the board drawer capture docs/evidence/shell-design-review/build-9kam3kq9/r2-drawer.png shows one "Files" entry; the operator accepted the build on glass on 2026-10-26 (docs/evidence/shell-design-review/operator-report.md). --> The system SHALL install Nautilus and Portfolio, each cross-built for the board's riscv64 target (k230.shell.filesAppNautilus defaults to true). The drawer SHALL list Nautilus as the one "Files" entry; Portfolio SHALL stay installed and launchable but SHALL NOT be listed. The system SHALL NOT ship nnn's previous terminal "Files" entry, its package, or any launcher/ card-title wiring for it.
evidence in this repository scenarios One Files entry, nnn's old entry absent
- WHEN the installed-application drawer is opened on a default coherentShell build - THEN exactly one "Files" entry is present, backed by Nautilus, and no "Files" entry backed by nnn or Portfolio is present
grounded
Files finishes loading a folder while it is on screen
grounding (2026-10-29, patched build `1lpsniwg…`)opened from the drawer with injected touch, Files went idle within 10 s and showed the home folder, also after an ordinary boot. The operator reported on the glass: "opened fast, folder showed" (docs/evidence/files-app/slow-load/README.md).
When Files opens a local folder of a few entries on the panel, it SHALL show the folder's contents while its window stays visible, without the person hiding or switching away from the window. Once the folder has loaded, its main thread SHALL go idle.
evidence in this repository scenarios Opening the home folder from the drawer
- WHEN a person opens Files from the drawer and it shows the home folder - THEN the folder's entries appear while the window stays on screen, and the "Loading…" bar goes away
Files at rest
- WHEN a folder has finished loading and nothing on screen is animating
- THEN Files uses no measurable CPU
grounded
A file opens in its default app and another app can be chosen
grounding (2026-10-28, board, injected)opening open-test.png and the PDF from Files started Viewnior and Zathura, and Open With listed the alternative handler (docs/evidence/open-with/board/README.md). On glass, 2026-10-29, build ql630glm…, the operator opened a photo and a PDF and switched handler once: "it all worked" (docs/evidence/glass-checklist-2026-10-29/operator-report.md). Grounding: nix/shell.nix sets MIME defaults only for text/plain, text/markdown and text/x-markdown, and records that no xdg-desktop-portal runs on the image; nix/handheld-desktop-entries.nix gives Viewnior the image types and both file managers inode/directory. Source read at cff47b1e.
The system SHALL ship a default application, from the image and not from a person's home directory, for images, PDF documents, folders and plain text. Opening a file of one of those types from Files, or with xdg-open, SHALL start that application on that file. Where a second installed application declares the file's type, Files SHALL offer it through its Open With dialog, and choosing it SHALL open the file in that application for that one open. A person's own association SHALL take precedence over the image's. The system SHALL NOT run a desktop portal to do this.
evidence in this repository scenarios A photo opens in the image viewer
- WHEN a person taps a PNG in Files
- THEN Viewnior opens that image
A folder opens in Files
- WHEN a person taps a folder in Files, or
xdg-open is given a folder - THEN the one Files entry opens it, not the hidden Portfolio
A fresh home still has defaults
- WHEN the shell user's home directory has no
mimeapps.list - THEN a PDF opens in Zathura
Another app is chosen
- WHEN a person opens the Open With dialog for a file that two installed apps can open and picks the second
- THEN the file opens in the second app and the default is unchanged
No handler
- WHEN a person opens a file whose type no installed app declares
- THEN no app starts and Files stays in front, with the dialog listing no application for it