evidence · 6.1 KiB

README.md

Committed at docs/evidence/open-with/board/README.md. This is what grounds the requirements that cite it.

Open raw source

Opening files: board evidence

Build l2ds6vvr… on 2026-10-28, test-activated with switch-to-configuration test and systemctl restart shell. Evidence class: injected board. Commands went over SSH, keys and taps went through /var/tmp/ui.py (uinput), and captures are native grim. Task 2.1 names tools/console.py on the USB console; SSH was used instead, and the reads are the same.

Test files: ~shell/open-test.png (a generated 240x160 RGB gradient), ~shell/open-test.pdf (a hand-written one-page PDF; Zathura repairs its xref and shows it), and ~shell/open-test-folder.

Two faults found and fixed on the way

  1. PDF had no default (build 1nhfnwx0…). In the running session, gio mime application/pdf printed “No default applications”. Upstream’s org.pwmt.zathura-pdf-mupdf.desktop runs a bare zathura. The session’s PATH (read from a foot process’s environ) has no system bin directory, so GIO drops the entry. Viewnior and Files already had overrides with absolute Exec lines. Fix: the same override for Zathura’s PDF entry in nix/handheld-desktop-entries.nix.
  2. xdg-open from a terminal failed for images (build wi19sdxx…). Viewnior printed “Cannot open display”. The terminal’s bash rebuilds XDG_DATA_DIRS from /etc/set-environment, which drops the session’s overrides, so upstream viewnior.desktop ran. Its nixpkgs wrapper defaults GDK_BACKEND to x11. Fix: environment.extraInit puts the overrides back first, after that line.

2.1 GIO in the session (gio-mime-session.txt)

This ran as the shell user with the environment copied from a running foot process (/proc/<pid>/environ).

XDG_CONFIG_DIRS is not set in the session, so GIO uses the spec default /etc/xdg. /etc/xdg/mimeapps.list holds the defaults above.

2.2 xdg-open typed in a terminal card (meminfo.txt)

2.3 Injected touch in Files

Files opened from xdg-open . (files-home.png). It opened as a floating window about 890 px wide, not full screen. A single tap only selects (“open-test.png” selected); opening takes a double tap, which is a new dtap action in ui.py: two 60 ms touches 90 ms apart.

2.5 Files as a full card, build 37nvncgk…, 2026-10-28

The run was injected and unattended on the board, with the charger online and shell-idle stopped. The earlier short window (about 1232x380, build q8k8w3mb…) was seen during on-screen-keyboard work. Four new launches on this build all filled the card:

Reading. Files fills the card whenever the layout gives it the full height. The earlier short window matches the 1232x380 that Nautilus commits for a layout reduced by the keyboard. It is most likely a layout left reduced by the keyboard show/hide race that bc450ea8 later fixed. That link is inferred; the earlier state was not reproduced on this build.

Not covered. While the keyboard is up, Files cannot fit: its 380 px minimum is taller than the 272 px left. On the first launch, the Home view also showed “Loading…” for more than a minute before its files appeared (files-full-card.png is from that wait). Neither is part of 2.5.

Scripts: filesrect.sh.txt, oskcycle.sh.txt, oskfirst.sh.txt.