purposes/KDE.md
2026-11-13 16:53:21 +03:00

4 KiB

KDE Desktop delivery profile

Accepted product direction: D-089. proposals/kde.yaml and proposals/kde-flatpak-apps.json are build-disabled implementation candidates. Private implementation sources now exist in ../builder/LAYERED-KDE.md and ../system/integrations/discover/; they have not yet been compiled or accepted. Approval of the composition is not evidence that these package names, Flatpak refs or adapters have been resolved/validated against the build inputs.

Native and Flatpak split

Native: Plasma/KWin, System Settings, Discover, Dolphin, Konsole, Spectacle and Ark; KIO, portals, Polkit, KWallet, networking/audio/power integration and Plymouth. Use NetworkManager instead of competing Core networkd interface ownership. PipeWire/WirePlumber and PowerDevil run in the user session, not root system units. Plasma Login Manager (KDE's SDDM fork) is the display manager; its greeter is a Plasma session, so it inherits the system-wide kxkbrc/plasmakeyboardrc configuration (RU+EN layouts, on-screen keyboard). Its handoff must be validated against the selected Plasma Setup package. Toolbx/rootless Podman remain common Desktop requirements with the existing common/desktop/toolbox.conf policy.

Flatpak: Okular, Gwenview, Kate, Elisa, KCalc and KClock. Their proposed stable Flathub refs live in the JSON policy; exact commits and runtime closure are resolved later into per-run inputs. Browser selection remains open. Do not install these six applications natively as well, except if a resolved dependency requires an explicitly reviewed adjustment. Do not install the whole KDE applications group.

First boot

Use upstream Plasma Setup, not a new account-creation wizard. Upstream's plasma-setup.service runs a boot utility before display-manager.service and uses /etc/plasma-setup-done. The candidate drop-in in proposals/kde-assets/ restricts it to an installed OSTree deployment and excludes the Archipelago live marker. Preserve upstream conditions and service ordering.

The private Archipelago observer checks after upstream success: verify a real primary user, home ownership, administrative authorization and Toolbx subordinate IDs, then record /etc/archipelago/provisioned. Do not mark completion merely because the wizard process exited. The user-interactive wizard must not be subjected to the short post-completion check timeout in the manifest. Cancellation/reboot must permit retry; completed setup must not rerun on update. Purpose switching with an existing user must not create a replacement account. Keep accounts and completion markers deployment-local with the accepted OSTree semantics; do not delete a system setup account through Archipelago.

Delivery infrastructure

Reuse the same pinned Core commit and package databases as the other Purpose in the cycle. Build a distinct layers/purpose/desktop/kde and full KDE image. Future update destination: stable/kde; source manifest and signed target must identify desktop/kde explicitly rather than relying on a GNOME marker.

Proposed worker cache: /opt/archipelago/cache/flatpak/kde, isolated from the existing GNOME cache. Do not relocate/reset the GNOME cache as part of scaffolding. Attempt refresh per build; fallback requires checksums and the exact KDE policy. Export only the KDE application/runtime closure into its ISO. Import once into the installed system Flatpak installation. Discover owns subsequent Flatpak updates/removal; OS updates do not re-seed removed apps. Purpose changes preserve already installed applications and user data.

Discover's private Archipelago backend uses the shared CLI plan/apply and support-status contracts; build and runtime evidence remain pending. Keep Flatpak/fwupd functionality; stock PackageKit/ALPM must not mutate live /usr. See ../infrastructure/deploy/proposals/kde-cycle.yaml and ../rfc/spec/kde-desktop.md for the remaining implementation boundaries. Composition intent is in ../manifests/proposals/kde-composition.yaml; its placeholder identities must be resolved before any build can use it.