commit 0fff7219315048f53c044d770475e8a34a2a356e
parent 9c824555f69b69ccb66a9ec3b6a6a485ce211775
Author: Divan Visagie <me@divanv.com>
Date: Sat, 28 Nov 2026 00:34:15 +0100
adr: leave the keyboard layout out of the first-run steps for now (ADR-0019)
The user decided the keyboard step can wait. The setup is now Wi-Fi, clock, computer name, then the
account. Everything the ADR said about the keyboard stays, relabelled as notes for when it is added
(the layout has to reach two compositors that do not read what localed writes on Fedora, which is
the reason it is the heavy one), and the order of work moves it to the end. The reason for putting it
first when it does come (the rest is typed on it) is kept.
Diffstat:
1 file changed, 13 insertions(+), 11 deletions(-)
diff --git a/docs/adr/0019-the-first-run-setup-is-several-steps.md b/docs/adr/0019-the-first-run-setup-is-several-steps.md
@@ -1,4 +1,4 @@
-# 0019. The first-run setup is several steps: keyboard, Wi-Fi, clock, computer name, then the account
+# 0019. The first-run setup is several steps: Wi-Fi, clock, computer name, then the account
Date: 2026-11-28
@@ -7,7 +7,9 @@ Date: 2026-11-28
Proposed. The user asked for it: the setup only makes an account, a machine installed from the ISO
came up on UTC (the user is in Stockholm, so the clock was an hour out), and they chose the clock, the
computer's name, Wi-Fi and the keyboard layout as what else it should ask. Language was offered and
-not chosen. The order, the mechanisms and the plumbing below are mine and wait for their say.
+not chosen. **The keyboard layout step is left out for now, at the user's word;** what it would need
+is kept below as notes for when it is added. The order, the mechanisms and the plumbing are mine and
+wait for their say.
## Context
@@ -24,9 +26,9 @@ account is the last step, and each earlier step applies its change when it is co
## Decision
-- **The steps, in this order:** Keyboard layout, Wi-Fi, Clock (time zone), Computer name, Account.
- The keyboard comes first because the rest is typed on it (the Wi-Fi password, the account's
- password). Each step but the last can be skipped, and Back goes to the one before.
+- **The steps, in this order:** Wi-Fi, Clock (time zone), Computer name, Account. Each step but the
+ last can be skipped, and Back goes to the one before. (When the keyboard step is added it goes
+ first, because the rest is typed on it: the Wi-Fi password, the account's password.)
- **Each step applies at once, through the service that owns it,** over the system bus with `zbus`
as the greeter already does for AccountsService:
- Clock: `org.freedesktop.timedate1` `SetTimezone`. The zone list is timedated's own
@@ -34,17 +36,17 @@ account is the last step, and each earlier step applies its change when it is co
is no network to guess from at this point), so the list starts on what is set (UTC) with a search.
- Computer name: `org.freedesktop.hostname1` `SetStaticHostname` (and the pretty name as typed).
- Wi-Fi: NetworkManager's `AddAndActivateConnection` for the chosen access point and its password.
- - Keyboard: `org.freedesktop.locale1` `SetX11Keyboard` and `SetVConsoleKeyboard`.
+ - Keyboard (later): `org.freedesktop.locale1` `SetX11Keyboard` and `SetVConsoleKeyboard`.
- **Polkit lets the greeter do those only in the same window as the account:** the rules file's check
("no human account can log in") becomes one function that the account rule and the new ones share
- (`org.freedesktop.timedate1.set-timezone`, `org.freedesktop.hostname1.set-static-hostname`,
- `org.freedesktop.locale1.set-keyboard`, and NetworkManager's `network-control` and
- `settings.modify.system`). Any doubt closes it, as the account rule does.
+ (`org.freedesktop.timedate1.set-timezone`, `org.freedesktop.hostname1.set-static-hostname`, and
+ NetworkManager's `network-control` and `settings.modify.system`; the keyboard's
+ `org.freedesktop.locale1.set-keyboard` with its step). Any doubt closes it, as the account rule does.
- **Settings has the same pages** for later (its Date and Time page, ADR-0157 of patina-desktop, sets
the time zone through the same timedated), so the setup only asks what a fresh machine cannot work
without and what is best set before the first login.
-## What the keyboard step needs besides the call
+## What the keyboard step will need besides the call (not built; notes)
The layout that localed writes has to reach two compositors, and today neither would read it:
@@ -63,7 +65,7 @@ The layout that localed writes has to reach two compositors, and today neither w
1. The steps' framework in the greeter, with the Clock step and the polkit rule it needs.
2. Computer name.
3. Wi-Fi.
-4. Keyboard layout, with the two compositors' side.
+4. Later: the keyboard layout, with the two compositors' side.
## Open questions