rfc/spec/gnome-desktop.md

9.5 KiB

GNOME Desktop, Flatpak and Toolbx

D-095 supersedes D-093's PackageKit integration: use stock Arch GNOME Software with the packaged Archipelago OS-update D-Bus plugin, Flatpak and fwupd. Exclude PackageKit and its dependencies/backend. Host Extension package installation uses CLI → archipelagod only. Native OS updates remain graphical and use direct D-Bus. See RFC-0013.

D-092 (2026-11-07) selects native system D-Bus integration for GNOME Software, Discover and installed-system CLI through the shared Archipelago update service. See RFC-0012. This supersedes the initial pkexec/helper transport and the historical PackageKit-versus-native choice for OS updates; Flatpak/fwupd retain their independent native backends.

Accepted direction: D-075/D-076, 2026-11-05. Package-level implementation, transition evidence and release readiness are separate from this approval.

Product contract

Latest user revision (2026-11-06): reinstate Flatpak-first for independent desktop applications, delivered with all required runtimes on installation media. The intervening native-application direction below is historical and superseded. Shell, GDM, Settings, Software, Nautilus, terminal and system integration remain native. This split also applies to future KDE. Users can remove preinstalled Flatpaks without OS updates reinstating them. Installer delivery replaces online first-login seeding; acceptance checks presence on the installed VM. Builds move to root@tall-bridge; terra retains signing, storage and publication.

Stable signing now uses /opt/archipelago/keys/archipelago-stable on terra and system/archipelago-stable.asc as the public trust input. The primary UID is Archipelago Stable OSTree <archipelago-stable@archipelago.invalid>; fingerprint CF0FED7A412E57010527CD68BFAA5E80EEEACCA2 is unchanged for installed-client trust.

D-081 makes production CLI cleanup/Russian localization and GUI whole-image updates with package changes mandatory before the next new stable ISO. D-082 requires Plymouth for every Desktop Purpose, with validated initramfs, splash-to-DM handoff and text diagnostics. Core-only remains console-oriented.

D-121 does not add phone integration to GNOME. The Arch repositories publish no GSConnect package, and the user direction on 2026-11-21 is that the image must not carry a self-built extension for it: a user who wants it installs GSConnect from the GNOME Shell extension catalog into their own profile. Nothing in the image blocks that, and nothing reinstalls or removes it on an OS update, because extensions installed that way live in the user's home. This is a product decision, not an open question: a future native GNOME phone-integration package would need a new decision.

User addition, corrected explicitly to zram (2026-11-07): ship zram-generator for GNOME and KDE with a vendor [zram0] configuration and no tuning overrides. The generator's defaults select swap size/priority and the kernel's default compression algorithm. Generate/activate the device at boot through systemd; machine-local configuration retains normal precedence. No disk swap is needed.

D-080 (2026-11-05) adds GNOME artwork/backgrounds (gnome-backgrounds) and inherits all glibc-supported locales generated by Core. Application lifecycle below remains unchanged. D-079 grants only the recorded current-cycle publication exception; missing Flatpak/default-app validation is not treated as passing.

GNOME is the first Desktop Purpose to implement. Provide GNOME Shell/Wayland, GDM, Settings, keyring, online accounts, portals, audio, networking and device integration. GNOME Software manages Flatpak applications and exposes whole-image Archipelago updates through the shared checked transaction backend. PackageKit must not mutate the immutable host through its ALPM backend.

GNOME Initial Setup runs in GDM new-user mode before normal login, covering account, language/keyboard, network, timezone and other supported initial settings. Core's terminal onboarding must not compete with it. Observe a successfully authenticated normal user session and account/home/admin consistency before recording Archipelago onboarding completion. Existing provisioned Core accounts are inherited; adding GNOME later must not create another initial user. Retry and rollback must preserve identities and administrator settings.

The user revised the application split after the initial D-075 direction:

Lifecycle Applications
Native OS image Shell, GDM, Settings, Software, Files/Nautilus, Console, Disks, System Monitor
Native OS image (revised requirement) Web/Epiphany, Calculator, Calendar, Contacts, Text Editor, Loupe, Papers, Clocks, Weather; Characters, Fonts, Connections, Archive Manager and Document Scanner
Optional, user-installed Flatpak Parallel Flatpak versions are permitted; no automatic default-app seeding

This native-default policy also applies to future KDE Desktop. Native applications update with the OS image; parallel Flatpak installations keep their own lifecycle. The previous offline Flatpak delivery requirement below is superseded by this explicit user revision, not an additional prerequisite for the next ISO.

GNOME Nightly is opt-in, not a default source for these stable applications. Flatpak and its GNOME Software plugin work out of the box. Apps/runtimes/remotes and their updates/removal belong to Flatpak. Distribution seeding is a first-install operation; later OS updates cannot silently reinstall an app the user removed. Keep system installation state in /var/lib/flatpak, user state under persistent home. Initial refs/commits and trust inputs need build evidence; mutable application updates are not OS-image deployments. A Flatpak service is not allowed to delay offline user creation indefinitely. Offline ISO availability and online retry need explicit tests.

User delivery refinement (2026-11-05): default Flatpak applications and their runtime/translation dependencies must be carried on installation media and available without post-install network downloads, including a machine with an incorrect RTC. Preserve normal Flatpak origins and subsequent update/removal semantics. Native hardware/integration coverage expands to audio firmware, multimedia codecs, CJK fonts, VPN plugins, scanning and accessibility. Exact offline import mechanics are an implementation candidate in builder/FLATPAK-OFFLINE.md (workspace-relative), not a completed acceptance result. Do not duplicate Flatpak utilities as native apps.

Toolbx on every Desktop Purpose

D-076 requires upstream Toolbx (toolbox executable/package) and rootless Podman for every Desktop Purpose, including future KDE. Configure an Arch Linux environment explicitly, with a reviewed Arch Toolbx OCI image and recorded digest. Reuse upstream image/integration where possible. User-created environments have normal mutable Arch package management, persistent home integration and a lifecycle independent of OS deployments and Host Extensions. This does not change the host support status by itself and does not imply isolation from the shared home or host resources.

Native account provisioning must provide valid subuid/subgid mappings and working rootless storage/networking. Verify plain toolbox create, toolbox enter/run, Arch /etc/os-release, package installation confined to the container, shared home, Wayland/session access and persistence over OS update/rollback. No automatic deletion or recreation of user environments on image updates. Optional creation at first use must not prevent offline desktop onboarding.

Current integration findings

Inspected terra's live Arch mirror on 2026-11-05 (observations, not a sealed snapshot): GNOME Software 51.1-1 has Flatpak/fwupd plugins but no PackageKit plugin. PackageKit 1.4.0-1 supplies the ALPM backend. Therefore installing stock packages is insufficient: build a reviewed GNOME Software adaptation with PackageKit support and an Archipelago backend, or validate a native Software plugin with the same update contract. Do not claim GUI updates until real discover/plan/stage/reboot/failure tests pass.

GNOME Initial Setup 51.1-1 and GDM 51.1.1-1 provide the setup session and upstream AccountsService/Polkit integration. Toolbx 0.3-2 and Podman 6.1.4-1 are available. Upstream provides quay.io/toolbx/arch-toolbox; image compatibility and default selection must be verified on the target rather than inferred from its name. Package records/file inventories are under /opt/archipelago/evidence/gnome/ on terra.

Delivery and acceptance

  1. Complete the current Core/firmware run, then build a distinct Core+GNOME candidate.
  2. Validate full package-action coverage, GDM/new-user onboarding and real session, settings/network/audio/portals and native applications.
  3. Validate default Flatpak installation, launch, update, removal and persistence; then the Desktop Toolbx scenarios above.
  4. Validate authenticated CLI and GUI OS updates, full Host Extension reapplication, stale-plan rejection, failed-update state preservation and explicit reboot.
  5. Run inherited Core boot/login/overlay/extensions checks on the GNOME candidate, plus reproducibility and all applicable publication gates. Publish the same validated artifacts to the repository and ISO portal, with correct variant metadata.

Passing an independent Core image is insufficient. D-050/D-051/D-052 and D-069 remain in force; this direction does not assert completed GUI integration or grant an exception to public publication criteria.