354.7. systemsettings-6.8.2
KDE System Settings — the window that hosts every settings module, with its search and KRunner entry
The build-state snapshot was taken from 6.8.2-1; this recipe is 6.8.2-4, so the size, time and contents below describe the earlier build.
| Version | 6.8.2, release 4 |
| Shelf | kde — KDE Plasma and Gear platform pieces outside Frameworks that have no other domain: KIO workers, thumbnailers, Plasma integration, KDE Wayland glue |
| Phase | 50_desktop (Desktop), 11 of 92 in build order |
| Licence | GPL-2.0-or-later AND LGPL-2.0-only AND CC0-1.0 AND BSD-3-Clause AND MIT AND BSD-2-Clause AND LGPL-2.1-or-later AND (GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL) |
| Homepage | https://invent.kde.org/plasma/systemsettings |
| Build time | 1.7 SBU |
| Installed size | 1.2 MiB in 44 files |
| Recipe | ports/core/kde/systemsettings/kpkgbuild |
About
System Settings is the window that hosts KDE’s settings modules (KCMs): it lists the modules every installed package registers under /usr/lib/qt6/plugins/plasma/kcms/systemsettings*, groups them into categories, searches them, and opens one by name (systemsettings kcm_kscreen). The modules themselves come from the packages that own each subject: plasma-workspace, plasma-desktop, kwin, powerdevil and the rest, and KDOS’s own. It also installs a KRunner plugin that finds a settings page by name.
Why it is in KDOS
The comment above it in script/phases/50_desktop/packages.txt:
System Settings, the window that hosts every settings module.
Sources
systemsettings-6.8.2.tar.xz(220.2 KiB)
sha256fd2c60fc07e6e897e0dc3ec357d5d0350a581ff26eeb3241c48b5901eeb410a5
upstream: https://download.kde.org/stable/plasma/6.8.2/systemsettings-6.8.2.tar.xz
archive copy: sources-3/kde--systemsettings-6.8.2.tar.xz
Dependencies
Depends on: cmake, ninja, extra-cmake-modules, qt6-qtbase, qt6-qtdeclarative, kauth, kcmutils, kcolorscheme, kconfig, kcoreaddons, kcrash, kdbusaddons, kdoctools, kguiaddons, ki18n, kiconthemes, kio, kirigami, kitemmodels, kitemviews, kjobwidgets, krunner, kservice, kwidgetsaddons, kwindowsystem, kxmlgui, plasma-activities.
Required by (5): kcm-kdos-boxes, kcm-kdos-system, kde-plasma, kinfocenter, sddm-kcm.
Patches
build.sh applies these; kpkg applies nothing by itself.
page-stack-accessible.patch reports System Settings’ two unnamed page stacks as plain containers instead of layered panes, so a screen reader passes over them: the window’s page stack, the QStackedWidget SettingsBase sets as its central widget, which Orca otherwise speaks as “layered pane 0 items” after the window title whenever a window opens, and KPageView’s page stack, spoken the same way before the first control on every Tab or Shift+Tab into a settings page. Its accessibility factory matches a QStackedWidget only when SettingsBase is its parent, so every other stacked widget in a module keeps its role. It is to be offered upstream as a merge request against plasma/systemsettings. The KPageView stack’s role could be set in kwidgetsaddons’ KPageView instead, for every KPageView in every application; that change is not taken here, and kcmshell6 carries the same factory for its own dialog in kcmutils’ kcmshell-page-stack-accessible.patch.
sidebar-list-focus.patch names the sidebar’s two lists for a screen reader, the category list “Settings categories” (“Search results” while a search is typed) and a category’s page list by the category’s title (“Colors & Themes”), and names each section heading of the category list by its full text, ‘&’ included (“Security & Privacy”), where the heading’s button type would strip the ‘&’ as a mnemonic marker. Entering a list gives its current item the focus, so the list’s name and then that item are read; the item takes the focus with no Tab reason, which keeps the style’s own focus ring off.
The patch draws a frame in the theme’s focus colour around the current item while its list holds the active focus that the keyboard brought there. A Tab entering the window gives the active focus to the list, and the list, not the item, records how the focus came: every focus entry into a list turns the frame on, by Tab, Backtab, an arrow key or the Right or Enter that opens a category’s pages, unless a pointer press on a sidebar item caused it. A press marks the sidebar in SideBarItem.qml until the event loop has run the click it ends in and turns off the frame of the list it lands in; the list losing the active focus turns it off too. A mouse click on an item therefore draws no frame and Space keeps it; a click on the empty space below the items that brings the focus back from a page shows it, since no item sees that press.
Tab from a page’s Help button returns to the sidebar, on a category’s page list to the list, and Tab from a list returns to the page, as upstream orders it. Shift+Tab from a page reaches the Show menu button, then Search on the first column (Back on the second), then leaves the sidebar for the page’s Help button: the search field hands its Backtab to systemsettings.focusPrevious() as the Back button does, where upstream’s binding to a KeyNavigation.left the field does not have lets it wrap inside the sidebar to the list. The announcement itself on entering the list comes from qt6-qtdeclarative’s quickwidget-focus-accessible.patch. It is to be offered upstream as a merge request against plasma/systemsettings.
page-stack-accessible.patch— System Settings: the window's and KPageView's page stacks are reported as plain containers, not unnamed layered panesTwo stacked widgets hold System Settings' content one page at a time, and neither has a name: the window's page stack, the QStackedWidget SettingsBase sets as its central widget, and KPageView's page stack, the KPageStackedWidget that holds the open settings page. Both take Qt's default role for a stacked widget, a layered pane. Orca speaks the window's stack as "layered pane 0 items" after the window title every time a System Settings window opens, and KPageView's stack the same way before the first control on every Tab or Shift+Tab into a settings page. As plain containers (QAccessible::Client, AT-SPI filler) both are passed over, like the scroll area System Settings names "Scrollable area" inside them.
An accessibility factory installed before the main window is built answers for KPageStackedWidget, and for a QStackedWidget only when its parent is SettingsBase, which the stack's constructor sets before any accessible query. Installed factories are asked before Qt's plugins at each level of the class chain, so every other stacked widget, in any module, keeps its role, and each stack's children are still its pages.
sidebar-list-focus.patch— System Settings: name the sidebar lists, frame and focus their current item, leave the sidebar by Shift+Tab from SearchThe two sidebar lists, the categories and a category's pages, have the list role and no name, so a screen reader entering one by Tab reads "list" and nothing it can act on. The category list is named "Settings categories", or "Search results" while a search is typed, and a category's page list takes the category's title ("Colors & Themes"). Each list hands its focus scope's focus to its current item whenever the list takes the active focus without it, so entering a list reads the list's name and then its current item. Setting the item's focus, with no Tab reason, leaves the style's own visual focus off.
Neither list shows where the keyboard focus is: the current item's highlight looks the same with the focus anywhere else in the window. The current item draws a frame in the theme's focus colour while its list holds the active focus and the keyboard brought it there. A Tab into the window hands the active focus to the list, which keeps that state, since a focus scope stays active while its current item holds the focus. Every focus entry into a list sets it, a Tab, Backtab, arrow key or a Right or Enter that opens a category's pages alike, unless a pointer press on a sidebar item caused the entry: a press marks the sidebar until the event loop has run the click it ends in, and clears the frame of the list it lands in. Losing the active focus clears it. A mouse click on an item draws no frame, and Space keeps it.
The search field's Backtab goes to its KeyNavigation.left, which it does not have, so a Shift+Tab from Search falls to the sidebar scene's own focus chain and wraps to the category list, and the list's and the menu button's backtabs close a loop of Show menu, Search and the list that never returns to the page. The search field hands a Backtab to systemsettings.focusPrevious(), as the page list's Back button does, so Shift+Tab from a page reaches Show menu, Search and then the page's Help button.
A section heading is a Kirigami.ListSectionHeader, an ItemDelegate, whose default accessible name is its text with each '&' stripped as a mnemonic marker: "Security & Privacy" is read "Security Privacy". The heading takes its section text as its accessible name.
Installation
From the repository root, inside the build container, this is the line kdosbuild runs for the port:
script/chroot/exec.sh bash -c 'source script/phases/50_desktop/phase.env && kpkg install systemsettings'
What kpkg does
kpkg runs these steps, in this order, as root inside the chroot. The port directory is /ports/core/kde/systemsettings.
1. Verify every declared source. Each file a sha256 = line names, found in the port directory or in /var/cache/kpkg/sources, must hash to its line; a mismatch stops the build before anything is unpacked.
cd /ports/core/kde/systemsettings
echo 'fd2c60fc07e6e897e0dc3ec357d5d0350a581ff26eeb3241c48b5901eeb410a5 systemsettings-6.8.2.tar.xz' | sha256sum -c -
2. Unpack. The work directory is emptied and the first source is unpacked into $SRC with its top directory stripped; any later tarball lands unstripped beside it in $SRC_ROOT, and a file that is not a tarball is copied into $SRC.
SRC_ROOT=/var/cache/kpkg/work/systemsettings
SRC=$SRC_ROOT/systemsettings-6.8.2
PKG=$SRC_ROOT/pkg
rm -rf "$SRC_ROOT"
mkdir -p "$SRC" "$PKG"
tar --no-same-permissions --warning=no-unknown-keyword -xf systemsettings-6.8.2.tar.xz -C "$SRC" --strip-components=1
Every config.guess and config.sub older than automake’s is then replaced with automake’s, so a configure script recognises the musl target.
3. Build. build.sh is sourced in a subshell under set -e, from $SRC, with name, version, release and the recipe’s helpers group and the five paths PKGNAME, PORT_SRC, SRC_ROOT, SRC and PKG set as shell variables. Its body, verbatim:
patch -p1 -i "$PORT_SRC/page-stack-accessible.patch"
patch -p1 -i "$PORT_SRC/sidebar-list-focus.patch"
cmake -S . -B build -G Ninja \
-D CMAKE_INSTALL_PREFIX=/usr \
-D KDE_INSTALL_LIBDIR=lib \
-D CMAKE_BUILD_TYPE=Release \
-D KDE_INSTALL_USE_QT_SYS_PATHS=ON \
-D BUILD_TESTING=OFF \
-D KF_SKIP_PO_PROCESSING=ON \
-D CMAKE_REQUIRE_FIND_PACKAGE_KF6DocTools=ON \
-Wno-dev
cmake --build build
DESTDIR=$PKG cmake --install build
The switches, and why each is set:
-D KF_SKIP_PO_PROCESSING=ON— Compile none of the interface translation catalogues inpo/. kpkg removes every non-English catalogue from the package anyway (see size and language policy), so this only saves build time.-D CMAKE_REQUIRE_FIND_PACKAGE_KF6DocTools=ON— The handbook, through kdoctools, which upstream looks for as an optional component and skips quietly.-Wno-dev— Silences CMake’s warnings meant for the project’s own developers.
The common switches of each build system are explained in the Flag glossary.
4. Package. kpkg removes libtool archives, the info directory index, mimeinfo.cache and every fonts.dir from $PKG, copies the source’s licence files into /usr/share/licenses/systemsettings, prunes what the image does not ship, lints the tree and rolls it reproducibly:
tar --sort=name --format=gnu --numeric-owner --owner=0 --group=0 \
--mtime=@$SOURCE_DATE_EPOCH \
--use-compress-program='xz -9 -T0 --block-size=32MiB --no-adjust' \
-cf systemsettings-6.8.2-4.tar.xz -C "$PKG" .
5. Adopt. kpkgadd installs the package’s files over the root, refusing a path another package owns, records the file list in /var/lib/kpkg/db/systemsettings, and runs the triggers its paths call for.
Contents
Installed programs: systemsettings.
Installed directories: /usr/share/doc/HTML/en/systemsettings, /usr/share/licenses/systemsettings, /usr/share/systemsettings.