354.10. plasma-workspace-6.8.2
KDE Plasma workspace — plasmashell, session start and shutdown, KRunner, notifications, the panel applets and the workspace settings
The build-state snapshot was taken from 6.8.2-3; this recipe is 6.8.2-5, so the size, time and contents below describe the earlier build.
| Version | 6.8.2, release 5 |
| 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), 32 of 92 in build order |
| Licence | GPL-2.0-or-later AND LGPL-2.0-or-later AND (LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL) AND (GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL) AND MIT AND LGPL-2.1-or-later AND CC0-1.0 AND LGPL-2.0-only AND BSD-2-Clause AND BSD-3-Clause AND GPL-2.0-only AND (GPL-2.0-only OR GPL-3.0-only) AND (GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL) AND GPL-3.0-or-later AND (LGPL-2.0-only OR GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL) AND LGPL-3.0-or-later AND ISC |
| Homepage | https://invent.kde.org/plasma/plasma-workspace |
| Build time | 2.0 SBU |
| Installed size | 56.6 MiB in 750 files |
| Recipe | ports/core/kde/plasma-workspace/kpkgbuild |
About
Plasma Workspace is most of what a Plasma session is: plasmashell, which draws the desktop, the panels and their applets; startplasma-wayland, plasma_session and ksmserver, which start the session and end it; KRunner; the notification server; Klipper; the logout screen; KSplash; xembedsniproxy for X11 tray icons; and the System Settings modules for colours, fonts, cursors, icons, the global theme, notifications, Region & Language, users, autostart and default applications. Its libraries (libkworkspace, libtaskmanager, libnotificationmanager, libklookandfeel) are what plasma-desktop, powerdevil and the other session modules link. It runs under kwin and needs kscreenlocker, whose D-Bus interface definitions the configure reads.
Why it is in KDOS
The comment above it in script/phases/50_desktop/packages.txt:
plasmashell, session start and shutdown, KRunner, notifications, the panel applets and the workspace settings.
Sources
plasma-workspace-6.8.2.tar.xz(18.5 MiB)
sha25652bee29adbac15d0e2f8db98e6440d4ae042fc38340423ed736ac20189778b64
upstream: https://download.kde.org/stable/plasma/6.8.2/plasma-workspace-6.8.2.tar.xz
archive copy: sources-3/kde--plasma-workspace-6.8.2.tar.xz
Dependencies
Depends on: cmake, ninja, extra-cmake-modules, pkgconf, qt6-qtbase, qt6-qtdeclarative, qt6-qtlocation, qt6-qtpositioning, qt6-qtshadertools, qt6-qtsvg, qt6-qtwayland, qt6-qt5compat, karchive, kauth, kbookmarks, kcmutils, kcolorscheme, kcompletion, kconfig, kconfigwidgets, kcoreaddons, kcrash, kdbusaddons, kdeclarative, kded, kdoctools, kglobalaccel, kguiaddons, kholidays, ki18n, kiconthemes, kidletime, kio, kirigami, kirigami-addons, kitemmodels, kjobwidgets, knewstuff, knotifications, kpackage, kparts, kquickcharts, krunner, kservice, kstatusnotifieritem, ksvg, ktexteditor, ktextwidgets, kwallet, kwidgetsaddons, kwindowsystem, kxmlgui, prison, solid, baloo, libplasma, plasma-activities, plasma-activities-stats, kwayland, libksysguard, libkscreen, layer-shell-qt, kpipewire, knighttime, union, kwin, kscreenlocker, plasma-wayland-protocols, wayland, qcoro, libqalculate, libcanberra, dbus, eudev, icu, zlib, freetype2, fontconfig, libxkbcommon, libX11, libICE, libSM, libXau, libXcursor, libXfixes, libXft, libXrender, libXtst, libxcb, xcb-util, xcb-util-cursor, xcb-util-image, xcb-util-wm, libkexiv2, appstream, accountsservice, fprintd, kio-extras, kio-fuse, milou, kactivitymanagerd, kde-cli-tools, plasma-integration, breeze, musl-locales, tzdata.
Required by (11): kde-plasma, kdeplasma-addons, kdos-plasma-look, krohnkite, plasma-browser-integration, plasma-desktop, plasma-setup, plasmoid-kdos-checklist, plasmoid-kdos-privacy, powerdevil, xdg-desktop-portal-kde.
Patches
build.sh applies these; kpkg applies nothing by itself.
locales.patch points the Region & Language module’s locale search at /usr/share/i18n/locales/musl, where musl-locales installs its definition files. The module’s GlibcLocaleConstructor scans that directory every time the module starts, whatever GLIBC_LOCALE says. Upstream reads /usr/share/i18n/locales and has no option for the directory; there the scan finds the musl/ subdirectory and no file, and the module shows a red error that it could not find the system’s locales. Chimera Linux carries the same one-line change (cports main/plasma-workspace/patches/locales.patch).
region-no-generation.patch makes an Apply in Region & Language end on the blue “Changes will take effect the next time you log in” message alone. With GLIBC_LOCALE_GEN=OFF the module’s generator is LocaleGeneratorBase, whose only answer to a save is userHasToGenerateManually with a fixed text telling the user to install fonts and generate locales from the distribution’s manual. Upstream’s kcmregionandlang.cpp counts that signal as success for this generator, but also shows the text as a red error, beside a “don’t turn off the computer” warning, raised before the call, that nothing takes down. The patch connects the signal, for LocaleGeneratorBase, to saveToConfigFile and takeEffectNextTime only, and save() raises the warning only for a generator that generates. musl needs no generation step: it takes any locale name. It is to be offered upstream.
kdos-bootctl-entry.patch is KDOS’s own. The logout screen names the boot entry the next restart switches to, and looks its title up in the output of bootctl list --json=short; KDOS has no bootctl, so the patch runs kdos-bootctl from kdos-tools instead, whose list --json=short prints the A/B slots in the same JSON shape. Without it the screen shows no entry. See Counting and confirming.
sandbox-badge.patch adds the task roles SandboxEngine and SandboxName, at the end of AbstractTasksModel::AdditionalRoles so no existing role value moves: org.flatpak and the application id for a task whose desktop entry has X-Flatpak, io.kdos.appbox and the box for one with X-KDOS-Box, which every launcher kdos-appbox genlaunchers writes carries. The Task Manager’s tooltip reads them (plasma-desktop’s patch of the same name). They say where an entry launches, not what a running window is; the title-bar glyph, read from the compositor’s security context, is the authority on that. Proposed upstream with the KWin, KDecoration and Breeze halves.
notifications-group-expander.patch makes a notification group in the history hide its oldest entries and always offer the “Show %1 More” and “Show Fewer” button for them, with the count it hides. Every KDOS Tools notification is in one group: kdos, kdos-notice and kdos-runner send x-kde-appname and no desktop-entry. It changes four files.
The history model in applets/notifications/main.qml sets expandUnread: false. Upstream sets it true, and NotificationGroupCollapsingProxyModel::filterAcceptsRow then keeps every unread child newer than lastRead as well as the newest groupLimit (two), so a collapsed group hides an entry from its middle, and which one depends on what has been read. Off, a collapsed group shows its newest two and hides exactly the older ones.
The button’s count is GroupChildrenCountRole less ExpandedGroupChildrenCountRole, both read on the group’s last visible row, and the delegate reads each again only when the model announces it. Both are re-announced to every child row of a group when a row joins or leaves it. libnotificationmanager/notificationgroupingproxymodel.cpp announces GroupChildrenCountRole, the group’s size, on all of a group’s children when tryToGroup adds one, and on all remaining children, by the group’s own child count, when one is removed; upstream announces it on none when a row joins, so the rows already shown keep the old size. libnotificationmanager/notificationgroupcollapsingproxymodel.cpp re-announces ExpandedGroupChildrenCountRole, the proxy’s row count under the group, and IsGroupExpandedRole after a source row is inserted or removed and after a ReadRole change. Without either, a group of four shows three rows and no button, or a group of eight offers “Show 4 More” when five are hidden, and an entry is never reachable.
applets/notifications/FullRepresentation.qml draws the button on the row followed by a top-level row or by none. Upstream draws it on the row whose ListView.nextSection differs from its section, the sender’s desktop entry. A sender that names no desktop entry has an empty section, and nextSection is empty past the list’s last row, so a group of such a sender at the bottom of the history, or followed by another one, draws no button. The next row is read from the model, which QML does not track, so the list keeps a revision that the model’s layout change, move, insertion, removal and reset signals bump, and the binding reads it; without it a group re-sorted in place would leave the button on a row that is no longer its last.
It is to be offered upstream.
appstream-runner-name-match.patch makes the Software Center runner in runners/appstream/appstreamrunner.cpp, which gives KRunner and Kickoff their “Get …” results, offer an application that is not installed only when every word of the query, case-folded, occurs in its name, id, package name or one of its keywords. AppStream’s search also matches summaries and descriptions, and over the thousands of components of Debian’s DEP-11 catalogue such a hit answers almost any query, arithmetic included: without the patch 12*7 offers Debian applications whose description holds the characters. It is the rule Discover’s own search follows (see Discover). The same patch narrows the runner’s other gate: it offers nothing when an installed application or command is named exactly what was typed, case-insensitively, rather than on any exec:// match another runner found. An application counts when a match’s text is the query (the services runner’s KCalc for kcalc); a command counts when the file name of a match’s command, the first argument after exec://, is the query’s first word (the shell runner’s “Run gimp” for gimp, “Run htop” for htop, whose text is never the query). The services runner gives each application it matches an exec:// id, its fuzzy matches included, so under the unpatched gate galculator finds KCalc and no “Get galculator…” row appears. It is to be offered upstream.
appstream-runner-icon.patch gives each “Get …” result of the Software Center runner an icon it can draw. Upstream’s componentIcon() adds a component’s cached or local icon file whether or not it exists, and tries a stock name, with QIcon::fromTheme, only while no file was added. debian-dep11 installs no icon files, so a Debian application such as galculator got a QIcon that is not null and draws nothing, an empty slot, and one whose stock name Breeze lacks, such as xdrawchem, got a placeholder. The patch adds a file only when it exists, takes the first stock name QIcon::hasThemeIcon() knows, and with neither takes the icon of the component’s first main desktop-entry category, from the table kdos-discover’s backend files a Debian application by (applications-utilities for Utility, applications-science for Science, kcolorchooser for Graphics), and only then package-x-generic. KRunner and Discover then show one icon for a Debian application. It is to be offered upstream.
desktop-view-title.patch titles each desktop window with the shell package’s name alone, “Desktop”, the title shell/desktopview.cpp already gives the view before it follows a screen. Upstream’s DesktopView::setScreenToFollow() appends @ and a QDebug dump of the screen’s geometry. A screen reader takes the window title for the desktop’s name, so Orca says “Desktop @ QRect(0,0 1920x1080)” each time focus returns to the desktop; a Qt debug string is no name. The screen a view follows stays readable from screenToFollow(), and nothing on KDOS matches on the title. It is to be offered upstream.
timezone-selector-width.patch sizes the floating toolbar under the time-zone map, in components/timezoneselector/TimezoneSelector.qml, to its row and its padding. Upstream sets the toolbar’s width to the row’s implicit width, so the row is laid out that width less the toolbar’s left and right padding; the two combo boxes do not shrink below their implicit width, and the time-zone box overhangs the panel’s right edge in plasma-setup’s Time and Date page and wherever else the selector is used. The patch drops the width binding, so the toolbar takes its implicit width, and keeps the height binding. It gives the time-zone box the right margin the region box already has, so the row’s two ends are the same distance from the panel’s edges with and without the time-zone box shown. It is to be offered upstream.
kcm-colors-accent-names.patch gives each accent colour swatch on the Colors settings page, in kcms/colors/ui/AccentColorUI.qml, a spoken name. The swatches are radio buttons with no text, built from a model of ten bare hex strings, and the colour-picker button beside them carries only its icon, so Orca reads each swatch as “not selected radio button” and the picker as an unnamed button. The patch adds a list of ten translated colour names in model order (Pink, Red, Orange, Yellow, Green, Teal, Blue, Purple, Violet, Gray) and sets each swatch’s accessible name and tooltip from it; the custom-colour indicator is named “Custom accent color” and the picker “Choose a custom accent color…”, which is also its tooltip. It adds no colour. It is to be offered upstream as a merge request against plasma/plasma-workspace.
region-rows.patch makes the Region & Language page, in kcms/region_language/optionsmodel.cpp, read each row’s setting from the row’s own entry rather than from its number. The row list holds Address, Name Style and Phone Numbers only where the C library defines LC_ADDRESS, which musl does not, so on KDOS every row after Paper Size is three places earlier than its SettingType: Data and Storage Sizes, row 6, was taken for Address, whose case is compiled out, and showed no example, and changing it signalled a row that does not exist. Data and Storage Sizes is always the last row, and its subtitle is empty rather than unreachable. It is to be offered upstream.
timezone-no-region.patch lets the time-zone selector, in components/timezoneselector/TimezoneSelector.qml, take a zone with no /, such as UTC, which a live medium and an install that kept the default run in. Upstream splits every id at its first slash, so UTC became the region UT and the location box was handed a region the table does not have; the next line threw a TypeError in the desktop and the mobile layout. A zone with no slash is now a region with no location, and an unknown region gives the location box an empty list. It is to be offered upstream.
appstream-runner-icon.patch— appstream runner: give a component an icon it can drawA cached or local icon is added only when its file exists, a stock name only when the icon theme has it, and a component with neither takes the icon of its first main desktop-entry category before package-x-generic. A catalogue that installs no icon files otherwise gives a non-null QIcon that draws nothing, and a stock name the theme lacks a placeholder.
appstream-runner-name-match.patch— appstream runner: offer only components the query names, unless an installed application or command has that nameThe runner offers a component only when every word of the query occurs in its name, id, package name or one of its keywords, not on a hit in its summary or description alone. It stays silent only when an installed application is named exactly what was typed, or an installed command is (the shell runner's match for the query's first word), not on any executable match another runner found, which includes the services runner's fuzzy hits.
desktop-view-title.patch— shell: title a desktop view with the shell package's name aloneDesktopView::setScreenToFollow() titles the window "<name> @ <QDebug of the screen geometry>", and a screen reader, which speaks the window title as the frame's accessible name, reads "Desktop @ QRect(0,0 1920x1080)" each time focus returns to the desktop. The title is the shell package's name, the one the constructor already sets before a screen is followed; the screen a view follows stays readable from screenToFollow().
kcm-colors-accent-names.patch— kcm_colors: name each accent colour swatch and the colour picker for screen readersThe accent swatches are radio buttons with no text, built from a model of bare hex strings, and the colour-picker button carries only an icon, so a screen reader announces each swatch as "not selected radio button" and the picker with no name. Each swatch takes a translated colour name, in model order, as its accessible name and its tooltip; the custom-colour indicator is named "Custom accent color", and the picker "Choose a custom accent color…", with the same text as its tooltip.
kdos-bootctl-entry.patch— logout-greeter: list boot entries with kdos-bootctlThe logout screen names the boot entry the next restart switches to. It reads the entry's id from login1's RebootToBootLoaderEntry and looks up its title in the output of `bootctl list --json=short`. KDOS installs no program called bootctl: its A/B slots are listed by `kdos-bootctl list --json=short`, which prints the same JSON shape, one entry per slot. Without the change the lookup finds no program and the screen shows no entry.
locales.patch— read musl-locales definitions from /usr/share/i18n/locales/muslThe Region & Language KCM offers only the locales whose definition files it finds in this directory. musl-locales installs them in musl/ below it, so the directory holds no file, the KCM lists no format locale, and it reports that localectl could not list them.
Chimera Linux carries the same one-line change for the same layout.
notifications-group-expander.patch— notifications: hide a history group's oldest entries and keep its expander count trueThe history collapses a notification group to its newest groupLimit children. With expandUnread it also keeps every unread child newer than lastRead, so a collapsed group hides an entry from its middle, and the count it offers as "Show %1 More" is not the number it hides. The history model turns expandUnread off, so a collapsed group shows its newest two children and hides exactly the older ones.
"Show %1 More" is GroupChildrenCountRole less ExpandedGroupChildrenCountRole, both read on the group's last visible child, and each is re-announced to every child row of a group whenever a row joins or leaves it:
- NotificationGroupingProxyModel reports the group's size on every child. When tryToGroup adds a row to a group it announces GroupChildrenCountRole on all of the group's children, and when a member is removed it announces it on all remaining children, the range taken from the group's own child count, not the number of top-level rows. - NotificationGroupCollapsingProxyModel computes ExpandedGroupChildrenCountRole as its row count under the group, so it re-announces that role, with IsGroupExpandedRole, after a source row is inserted or removed and after a ReadRole change, which moves the expandUnread filter.
The history draws "Show %1 More" (and "Show Fewer") on a group's last visible child, found by comparing ListView.section with nextSection. The section is the desktop entry, which is empty for a sender that names none, and nextSection is empty past the list's last row; a group of such a sender at the bottom of the list, or followed by another one, never draws the button, and its collapsed children cannot be reached. The row is taken as the group's last when the next row is not inside a group or there is none, which holds whatever the sections are.
The next row is read from the model, which QML does not track, so the list keeps a revision that every layout change, move, insertion, removal and reset bumps, and the binding reads it.
region-no-generation.patch— treat a save without locale generation as a success in Region & LanguageOn a system that needs no generation step (BSD, musl) the KCM's generator is LocaleGeneratorBase, whose only answer to a save is userHasToGenerateManually with a fixed text telling the user to generate locales from the distribution's manual. The KCM already counts that signal as success there and shows "Changes will take effect the next time you log in", but it also shows the text as an error, and the "don't turn off the computer" warning it raised before the call stays up beside both.
For LocaleGeneratorBase the signal reaches only saveToConfigFile and takeEffectNextTime, and save() raises no generation warning. Every other generator is unchanged.
region-rows.patch— region KCM: read each row's setting from its own entryThe options model built its row list with Address, Name Style and Phone Numbers only when LC_ADDRESS is defined, but read every row back by casting the row number to SettingType. On a C library with no LC_ADDRESS, such as musl, the rows after Paper Size are three short, so "Data and Storage Sizes" (row 6) was read as Address, whose case is compiled out, and showed no example; its change signal named row 9, which does not exist. Each row now carries its own SettingType, which the switches read, and Data and Storage Sizes is always the last row.
sandbox-badge.patch— libtaskmanager: add the SandboxEngine and SandboxName rolesA task whose desktop entry carries X-Flatpak or X-KDOS-Box runs its application in a sandbox, and the task manager can say which: SandboxEngine is org.flatpak or io.kdos.appbox, SandboxName the Flatpak application id or the KDOS box. Both are read with the rest of AppData from the task's service, for window and launcher tasks alike, and refreshed when a window's app id changes. They name where the entry launches, which is what a tooltip line needs; the compositor's security context stays the authority on what a running window is.
timezone-no-region.patch— time zone selector: accept a zone with no region, such as UTCsplit() assumed every zone id has a slash, so "UTC" became the region "UT" and the location "UTC", and the location combo box was given areasByRegion["UT"], which is undefined; the next line's indexOf then threw a TypeError in both the desktop and the mobile layout. A zone with no slash is now its own region with no location, and a region the table does not have gives the location box an empty list.
timezone-selector-width.patch— TimezoneSelector: size the floating toolbar to its contents and paddingThe toolbar under the map set its width to the row's implicit width, so the row got that width less the toolbar's left and right padding. Its two combo boxes do not shrink below their implicit width, and the time-zone box ran past the panel's right edge. Without the width binding the toolbar takes its implicit width, the row plus its padding. The height keeps its binding. The location box takes the same right margin the region box has, so the row's ends are symmetric with and without the location box.
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 plasma-workspace'
What kpkg does
kpkg runs these steps, in this order, as root inside the chroot. The port directory is /ports/core/kde/plasma-workspace.
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/plasma-workspace
echo '52bee29adbac15d0e2f8db98e6440d4ae042fc38340423ed736ac20189778b64 plasma-workspace-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/plasma-workspace
SRC=$SRC_ROOT/plasma-workspace-6.8.2
PKG=$SRC_ROOT/pkg
rm -rf "$SRC_ROOT"
mkdir -p "$SRC" "$PKG"
tar --no-same-permissions --warning=no-unknown-keyword -xf plasma-workspace-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/locales.patch"
patch -p1 -i "$PORT_SRC/region-no-generation.patch"
patch -p1 -i "$PORT_SRC/kdos-bootctl-entry.patch"
patch -p1 -i "$PORT_SRC/sandbox-badge.patch"
patch -p1 -i "$PORT_SRC/notifications-group-expander.patch"
patch -p1 -i "$PORT_SRC/appstream-runner-name-match.patch"
patch -p1 -i "$PORT_SRC/appstream-runner-icon.patch"
patch -p1 -i "$PORT_SRC/desktop-view-title.patch"
patch -p1 -i "$PORT_SRC/timezone-selector-width.patch"
patch -p1 -i "$PORT_SRC/kcm-colors-accent-names.patch"
patch -p1 -i "$PORT_SRC/region-rows.patch"
patch -p1 -i "$PORT_SRC/timezone-no-region.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 WITH_X11=ON \
-D WITH_X11_SESSION=OFF \
-D INSTALL_SDDM_WAYLAND_SESSION=ON \
-D GLIBC_LOCALE_GEN=OFF \
-D GLIBC_LOCALE=OFF \
-D BUILD_GEOTIMEZONED=OFF \
-D BUILD_CAMERAINDICATOR=ON \
-D CMAKE_REQUIRE_FIND_PACKAGE_AccountsService=ON \
-D CMAKE_REQUIRE_FIND_PACKAGE_AppStreamQt=ON \
-D CMAKE_REQUIRE_FIND_PACKAGE_Fontconfig=ON \
-D CMAKE_REQUIRE_FIND_PACKAGE_Freetype=ON \
-D CMAKE_REQUIRE_FIND_PACKAGE_KExiv2Qt6=ON \
-D CMAKE_REQUIRE_FIND_PACKAGE_KF6Baloo=ON \
-D CMAKE_REQUIRE_FIND_PACKAGE_KF6DocTools=ON \
-D CMAKE_DISABLE_FIND_PACKAGE_KF6UserFeedback=ON \
-D CMAKE_DISABLE_FIND_PACKAGE_PackageKitQt6=ON \
-Wno-dev
cmake --build build --target shell/qwayland-plasma-shell.h shell/wayland-plasma-shell-client-protocol.h
cmake --build build
DESTDIR=$PKG cmake --install build
rm -rf "$PKG/usr/lib/systemd"
rm "$PKG/usr/lib/qt6/plugins/kf6/kded/oom_notifier.so" "$PKG/usr/share/knotifications6/oom_notifier.notifyrc"
ln -s plasma-applications.menu "$PKG/etc/xdg/menus/applications.menu"
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 WITH_X11=ON— Build the X11 parts that serve Xwayland clients:xembedsniproxy, which puts an X11 program’s tray icon in the system tray,gmenu-dbusmenu-proxy, which hands an X11 GTK program’s menu bar to the global menu applet, Klipper’s X11 clipboard and the Fonts settings module.ksmserver, the session manager every Plasma session runs, is built only with this switch, so turning it off leaves no session to start. It links the X client libraries independsand starts no X server.-D WITH_X11_SESSION=OFF— Install no X11 session. The 6.8.2 build declares the option and reads it nowhere, so it changes nothing in this release; it is passed so that a release that reads it again cannot put astartplasma-x11and anxsessionsentry on the system, which has no X server.-D INSTALL_SDDM_WAYLAND_SESSION=ON— Install/usr/lib/sddm/sddm.conf.d/plasma-wayland.conf, which runs sddm’s greeter onkwin_waylandinstead of an X server. Upstream leaves it off and calls the Wayland greeter a beta; a system without an X server has no other greeter.-D GLIBC_LOCALE_GEN=OFF— Build nolocalegenhelper, the polkit helper the Region & Language module runs to add a locale to/etc/locale.genand runlocale-gen. musl has neither; its locales are the files musl-locales installs. Without the switch the module offers an action that fails, and the configure requires polkit-qt6 for it.-D GLIBC_LOCALE=OFF— Offer every locale Qt’s CLDR data carries in the Region & Language module’s format lists. On,localelistmodel.cppkeeps only the locales with a definition file in the module’s locale directory: the seventeen musl-locales installs, with no Japanese, Chinese, Korean, Arabic, Hebrew, Polish, Turkish or Greek. That directory holds noCfile either, so the filter drops the C locale, and the row the model labels “ISO C Standard” by position becomescs_CZ. A KDE program formats from Qt’s CLDR data and theLC_*names inplasma-localerc, and musl accepts any locale name, so every listed region’s formats apply. Off, the Language page writes the selected language as a<locale>.UTF-8name instead of matching it to a definition file, and the module hands AccountsService no definition-file name for the languages.-D BUILD_GEOTIMEZONED=OFF— Build nogeotimezoned, the kded module that, once started from Background Services, sends the machine’s public address togeoip.kde.orgwhenever the primary network connection changes and sets the system time zone to the answer throughorg.freedesktop.timedate1. The option is on by default on Linux, and the module is the only part of the package that asks a web service for anything on its own (see Offline by construction). Off, the configure does not require NetworkManagerQt.-D BUILD_CAMERAINDICATOR=ON— Build the camera indicator applet, which shows in the system tray while an application is reading a camera. Upstream builds it only when a quietpkg-configsearch finds libpipewire, which only the applet’s tests link; the applet itself is QML over theorg.kde.pipewire.monitormodule from kpipewire, so the switch builds it whatever the build root holds.-D CMAKE_REQUIRE_FIND_PACKAGE_AccountsService=ON— The Users settings module edits accounts throughaccounts-daemonfrom accountsservice and reads itsaccountsservice.pc. Upstream treats it as a run-time package and only reports its absence.-D CMAKE_REQUIRE_FIND_PACKAGE_AppStreamQt=ON— AppStreamQt, from appstream, is what lets KRunner offer software that is not installed and open it in discover, and what gives Kickoff’s entries their “Uninstall or Manage Add-Ons” action. Upstream builds both without it and says nothing.appstreammust be built with its Qt library, or the configure stops here.-D CMAKE_REQUIRE_FIND_PACKAGE_Fontconfig=ON— With-D CMAKE_REQUIRE_FIND_PACKAGE_Freetype=ON: fontconfig and freetype2 are optional upstream, and without them the font installer and the Fonts settings module are not built.-D CMAKE_REQUIRE_FIND_PACKAGE_KExiv2Qt6=ON— The image wallpaper’s chooser shows a picture’s title and author, read from its Exif tags through libkexiv2, which upstream uses only when it is found.-D CMAKE_REQUIRE_FIND_PACKAGE_KF6Baloo=ON— The file search runner, KRunner’s search of indexed files, is built only when baloo is found.-D CMAKE_REQUIRE_FIND_PACKAGE_KF6DocTools=ON— The handbooks, through kdoctools, which upstream looks for as an optional component.-D CMAKE_DISABLE_FIND_PACKAGE_KF6UserFeedback=ON— No KUserFeedback, which would add the telemetry settings module and plasmashell’s usage reporting. It is not a port; refusing it means a stray copy in the build root cannot be picked up.-D CMAKE_DISABLE_FIND_PACKAGE_PackageKitQt6=ON— No PackageKit integration, which Region & Language uses to install language packages and the session uses for offline updates. PackageKit is not a port, and KDOS installs software through its own package manager.-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/plasma-workspace, 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 plasma-workspace-6.8.2-5.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/plasma-workspace, and runs the triggers its paths call for.
Contents
Installed programs: gmenudbusmenuproxy, kcolorschemeeditor, kfontinst, kfontview, krunner, ksmserver, ksplashqml, lookandfeeltool, plasma-apply-colorscheme, plasma-apply-cursortheme, plasma-apply-desktoptheme, plasma-apply-lookandfeel, plasma-apply-wallpaperimage, plasma-interactiveconsole, plasma-shutdown, plasma_session, plasma_waitforname, plasmashell, plasmawindowed, startplasma-wayland, xembedsniproxy.
Installed libraries: libbatterycontrol.so, libkfontinst.so, libkfontinstui.so, libklipper.so, libklookandfeel.so, libkmpris.so, libkworkspace6.so, libnotificationmanager.so, libtaskmanager.so.
Installed directories: /usr/include/klookandfeel, /usr/include/kworkspace6, /usr/include/notificationmanager, /usr/include/taskmanager, /usr/lib/cmake/KRunnerAppDBusInterface, /usr/lib/cmake/KSMServerDBusInterface, /usr/lib/cmake/LibKLookAndFeel, /usr/lib/cmake/LibKWorkspace, /usr/lib/cmake/LibNotificationManager, /usr/lib/cmake/LibTaskManager, /usr/lib/qt6/plugins/plasma/containmentactions, /usr/lib/qt6/plugins/plasmacalendarplugins/holidays, /usr/lib/qt6/qml/org/kde/breeze/components, /usr/lib/qt6/qml/org/kde/notificationmanager, /usr/lib/qt6/qml/org/kde/plasma/clock, /usr/lib/qt6/qml/org/kde/plasma/lookandfeel, /usr/lib/qt6/qml/org/kde/plasma/private/accessibility, /usr/lib/qt6/qml/org/kde/plasma/private/battery, /usr/lib/qt6/qml/org/kde/plasma/private/clipboard, /usr/lib/qt6/qml/org/kde/plasma/private/containmentlayoutmanager, /usr/lib/qt6/qml/org/kde/plasma/private/digitalclock, /usr/lib/qt6/qml/org/kde/plasma/private/holidayevents, /usr/lib/qt6/qml/org/kde/plasma/private/keyboardindicator, /usr/lib/qt6/qml/org/kde/plasma/private/kicker, /usr/lib/qt6/qml/org/kde/plasma/private/mpris, /usr/lib/qt6/qml/org/kde/plasma/private/sessions, /usr/lib/qt6/qml/org/kde/plasma/private/shell, /usr/lib/qt6/qml/org/kde/plasma/private/systemtray, /usr/lib/qt6/qml/org/kde/plasma/shell, /usr/lib/qt6/qml/org/kde/plasma/wallpapers/image, /usr/lib/qt6/qml/org/kde/plasma/workspace, /usr/lib/qt6/qml/org/kde/taskmanager, /usr/lib/sddm, /usr/share/doc/HTML/en/PolicyKit-kde, /usr/share/doc/HTML/en/kcontrol/autostart, /usr/share/doc/HTML/en/kcontrol/colors, /usr/share/doc/HTML/en/kcontrol/componentchooser, /usr/share/doc/HTML/en/kcontrol/cursortheme, /usr/share/doc/HTML/en/kcontrol/desktopthemedetails, /usr/share/doc/HTML/en/kcontrol/fontinst, /usr/share/doc/HTML/en/kcontrol/fonts, /usr/share/doc/HTML/en/kcontrol/icons, /usr/share/doc/HTML/en/kcontrol/kcmstyle, /usr/share/doc/HTML/en/kcontrol/lookandfeel, /usr/share/doc/HTML/en/kcontrol/notifications, /usr/share/doc/HTML/en/kcontrol/region_language, /usr/share/doc/HTML/en/kcontrol/screenlocker, /usr/share/doc/HTML/en/klipper, /usr/share/kfontinst, /usr/share/kio_desktop, /usr/share/kxmlgui5/kfontview, /usr/share/kxmlgui5/kfontviewpart, /usr/share/licenses/plasma-workspace, /usr/share/plasma/avatars, /usr/share/plasma/look-and-feel/org.kde.breeze.desktop, /usr/share/plasma/look-and-feel/org.kde.breezedark.desktop, /usr/share/plasma/look-and-feel/org.kde.breezetwilight.desktop, /usr/share/plasma/plasmoids/org.kde.plasma.systemmonitor, /usr/share/plasma/plasmoids/org.kde.plasma.systemmonitor.cpu, /usr/share/plasma/plasmoids/org.kde.plasma.systemmonitor.cpucore, /usr/share/plasma/plasmoids/org.kde.plasma.systemmonitor.diskactivity, /usr/share/plasma/plasmoids/org.kde.plasma.systemmonitor.diskusage, /usr/share/plasma/plasmoids/org.kde.plasma.systemmonitor.memory, /usr/share/plasma/plasmoids/org.kde.plasma.systemmonitor.net, /usr/share/plasma/wallpapers/org.kde.color, /usr/share/plasma/wallpapers/org.kde.image, /usr/share/plasma/wallpapers/org.kde.slideshow, /usr/share/timezonefiles, /usr/share/wayland-sessions.
Notes
build.sh builds the two generated headers shell/qwayland-plasma-shell.h and shell/wayland-plasma-shell-client-protocol.h before the rest of the tree. They are generated for the plasmashell_osd target and included by plasmashell’s own sources, and the build records no dependency between the two, so a parallel build can compile plasmashell first and stop on a missing header (plasma-workspace#132). Alpine builds the same two targets first.
The install puts the session’s systemd user units under /usr/lib/systemd, which the package lint refuses (see What the package lint refuses); build.sh removes the directory. Without the units the session takes upstream’s classic path: startplasma-wayland runs plasma_session, which starts ksmserver, kded6 and the XDG autostart entries, plasmashell’s among them. With startkderc’s [General] systemdBoot unset, startplasma-wayland first asks the session bus whether systemd’s plasma-workspace.target exists, and takes the classic path when the call fails; KDOS ships /usr/share/kdos/xdg/startkderc with systemdBoot=false, outside this package, so the question is never asked.
build.sh deletes the kded module oom_notifier and its oom_notifier.notifyrc. The module tells the user about an application the kernel killed for memory by watching systemd’s org.freedesktop.systemd1 scopes, which do not exist on KDOS, so it would load in every session and never fire; the build has no switch for it. kdos-oomd and kdos-notice do that job here.
Without a service manager nothing restarts plasmashell after it exits, and it exits on purpose when its compositor goes away: shell/main.cpp unsets QT_WAYLAND_RECONNECT for itself, and upstream’s user unit, which build.sh removes, carries the Restart=on-failure that would bring it back. The module of kded-kdos starts it again instead (see How plasmashell is kept running).
startplasma-wayland sets XDG_MENU_PREFIX=plasma-, so inside a session KService builds the application tree from /etc/xdg/menus/plasma-applications.menu. A program whose environment lacks the prefix, such as one run by sudo with a reset environment or from a timer, reads applications.menu, which no other package installs; KService then builds an empty tree and “Open With” lists nothing. build.sh links applications.menu to plasma-applications.menu, as Chimera does.
The Users module hashes a new password itself and hands the hash to accounts-daemon. With libxcrypt, which is not a port, it would ask crypt_gensalt() for the system’s preferred method; without it the module makes a $6$ (SHA-512) salt of 16 random characters, which musl’s crypt() implements. It enrols fingers through fprintd on the system bus, and shows its fingerprint controls only when fprintd reports a reader.
Three optional packages are looked for with pkg-config and no switch can refuse them: flatpak (notification grouping for Flatpak applications), systemd (the autostart module’s journal view of a unit, and the systemd start-up targets) and libxcrypt. None is a port, so none is found. The configure also reports two run-time packages: kio-fuse, which it looks for in the build root only, and appmenu-gtk-module, the GTK module through which gmenu-dbusmenu-proxy receives a GTK program’s menu bar. The second is not a port, so a GTK program keeps its menu bar in its own window.
kde-cli-tools and kactivitymanagerd are programs the session runs; milou and qt6-qt5compat provide QML modules that plasmashell and KRunner import; kio-extras draws the wallpaper chooser’s thumbnails and kio-fuse gives a program that is not a KDE one a local path for a remote file; plasma-integration and breeze are the Qt platform theme and the widget style and colours that the Breeze look-and-feel package names; tzdata and musl-locales are what the clock and Region & Language read. The configure checks none of them, so each is in depends for run time.