builder/LAYERED-KDE.md
Archipelago 192c235254 Replace SDDM with Plasma Login Manager in the KDE Purpose
The greeter is a Plasma session, so the SDDM theme drop-in and the
CompositorCommand input-method flag are gone. Layouts (ru,us) and the
on-screen keyboard now reach the greeter through system-wide kxkbrc and
plasmakeyboardrc, the preset enables plasmalogin.service, and finalization
checks the package/unit and that SDDM is absent.
2026-11-13 16:53:21 +03:00

4.8 KiB

Private layered KDE adapter

D-091 (2026-11-07) authorizes KDE publication after user-confirmed hardware readiness. D-110 (2026-11-13) replaces SDDM with Plasma Login Manager, KDE's SDDM fork: the greeter is a Plasma session, so there are no SDDM themes or CompositorCommand knobs. Keyboard layouts and the virtual keyboard reach the greeter through the system-wide /etc/xdg/kxkbrc (RU+EN) and /etc/xdg/plasmakeyboardrc files in the Purpose payload; finalization checks the package, the unit, the absence of SDDM and those two files.

The KDE package selection carries the Plasma Login Manager KCM (kcm_plasmalogin, shipped in plasma-login-manager) for login-screen configuration in System Settings. sddm-kcm is no longer installed. Finalization checks the package and unit presence in the composed tree. kinfocenter is included as well for the About this System page in System Settings; package presence is checked in finalization and installed-VM acceptance.

Hardware follow-up found a precedence defect in published run 20261107T101235Z (historical, SDDM era; superseded by D-110): 20-archipelago-theme.conf was loaded before the SDDM package's default.conf, whose [Theme] Current= reset the selection. Both files were confirmed in image a747ff537a991ce20a1735506576e554e648bed09a2465c50fccc73fbc4eac80. The corrected zz- name sorts after that file; finalization now checks the merged vendor and /etc configuration instead of grepping only our fragment. sddm --example-config wipes configuration to compiled defaults and is unsuitable for this check. This source correction still requires a new pipeline publication and the user's hardware verification; the published image remains affected.

archipelago build iso --purpose kde WORK BOOTSTRAP renders the same private Core-reuse/composition path as GNOME, inserting KDE assets before finalization. It requires ARCHIPELAGO_CORE_BUILD, a KDE installation-media Flatpak export, and ARCHIPELAGO_DISCOVER_PLUGIN. Core is not rebuilt in this path.

The rendered path tokens are changed before injecting policies or helper source; application IDs and shared helper contents are never globally rewritten. The KDE assets require the Core CLI to match the current executable and require a KDE update ref in the Core's update profile. Reusing a pre-KDE Core is rejected. Discover runtime must be exactly 6.8.2-1, matching the pinned plugin adapter.

The first KDE transaction found no plasma-setup package in the selected mirror. The pipeline therefore packages upstream 6.8.2 from its checksum-pinned release archive using packages/plasma-setup/PKGBUILD inside the isolated worker. Its archive is passed to Core via ARCHIPELAGO_PLASMA_SETUP_PACKAGE, signed and included in the local package repository before snapshot identity is captured. Core does not install it; KDE installs it from that same repository. The source archive, recipe, binary checksum and build package inventory are retained. This private package path still requires compilation and installed onboarding acceptance.

Native first boot uses upstream Plasma Setup and Plasma Login Manager. The installed-only drop-in preserves upstream ordering and conditions. The greeter is a Plasma session started by plasmalogin.service, so it uses the same KWin Wayland stack as the desktop. A timer observes /etc/plasma-setup-done and a local greeter login (including upstream's temporary new-user autologin), verifies AccountsService identity, home, wheel/sudo and subordinate ranges, then records Archipelago provisioning. No account or completion marker is created by the builder.

The native Discover backend exposes one nonremovable OS resource and delegates refresh/apply to the existing Polkit helper. Flatpak and fwupd remain separate. The launcher selects those three backends; PackageKit is masked. Applying an OS update stages it and reports reboot-required; the backend never reboots itself. Support/customization descriptions come from the privileged shared CLI and retain separate booted/pending labels.

Verification status

Implementation source added 2026-11-06 while the existing Core/GNOME cycle runs. Discover compilation passed in cycle 20261106T204739Z; KDE image construction stopped at the missing Plasma Setup package. No KDE runtime check has yet run. The first completed pipeline must verify the plugin ABI, actual Plasma Setup/SDDM handoff, subordinate-ID provisioning, native application integration and the Flatpak/runtime closure. Its UI action profile must be calibrated against the actual first image; a missing profile retains the initial screen and fails acceptance rather than accepting a boot alone. The explicit first-image calibration mode waits for real upstream provisioning and authenticated SDDM login; it records manual calibration, not autonomous evidence. Full reproducibility and real GUI update acceptance remain separate open evidence.