Skip to the text
KDOS
Menu
kdos.dev KDOS from Scratch KDOS 0.2 · 4dd4a10 · 2026-11-30 Contents Index

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

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.

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:

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.