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

354.12. plasma-desktop-6.8.2

KDE Plasma desktop shell — the desktop and panel containments, Kickoff, the task manager, the emoji selector and the input and session settings

Version 6.8.2, release 3
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), 35 of 92 in build order
Licence GPL-2.0-or-later AND (GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL) AND LGPL-2.0-or-later AND BSD-3-Clause AND LGPL-2.0-only AND MIT AND CC0-1.0 AND (LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL) AND LGPL-2.1-or-later AND BSD-2-Clause AND Unicode-DFS-2016 AND GFDL-1.2-or-later
Homepage https://invent.kde.org/plasma/plasma-desktop
Build time 1.1 SBU
Installed size 35.8 MiB in 528 files
Recipe ports/core/kde/plasma-desktop/kpkgbuild

About

Plasma Desktop is the desktop shell package that plasma-workspace’s plasmashell loads: the folder-view desktop and panel containments, Kickoff and the other launchers, the task manager, the pager, the emoji selector, the input-method panel, the device automounter, and the System Settings modules for keyboard, mouse, touchpad, touchscreen, tablet, game controllers, shortcuts, date and time, accessibility, activities, search, session start and the splash screen. It also installs SDDM’s Breeze login theme in /usr/share/sddm/themes/breeze and KDE’s default kde-mimeapps.list.

Why it is in KDOS

The comment above it in script/phases/50_desktop/packages.txt:

The desktop and panel containments, Kickoff, the task manager and the input and session settings.

Sources

Dependencies

Depends on: cmake, ninja, extra-cmake-modules, pkgconf, qt6-qtbase, qt6-qtdeclarative, qt6-qtsvg, qt6-qt5compat, qt6-qtshadertools, qt6-qtwayland, attica, baloo, kauth, kcmutils, kcodecs, kcompletion, kconfig, kcoreaddons, kcrash, kdbusaddons, kdeclarative, kded, kdoctools, kglobalaccel, kguiaddons, ki18n, kiconthemes, kio, kirigami, kirigami-addons, kitemmodels, kitemviews, knewstuff, knotifications, knotifyconfig, kpackage, krunner, kservice, ksvg, kwidgetsaddons, kwindowsystem, kxmlgui, qqc2-desktop-style, solid, sonnet, libplasma, plasma5support, plasma-activities, plasma-activities-stats, plasma-workspace, kwin, kscreenlocker, libksysguard, kpipewire, kactivitymanagerd, polkit-qt6, libcanberra, libwacom, sdl2-compat, eudev, wayland, wayland-protocols, libX11, libxkbfile, libxcb, libxkbcommon, xkeyboard-config, xdg-user-dirs, noto-emoji.

Required by (4): kde-plasma, kdos-plasma-look, kdos-sddm-theme, plasma-setup.

Patches

build.sh applies these; kpkg applies nothing by itself.

sandbox-badge.patch puts the sandbox a window’s application runs in at the top of its Task Manager tooltip’s subtext: “In box: www” for a KDOS box, “Flatpak: ” for a Flatpak, “In sandbox: ” for any other engine, per window in a grouped tooltip. It is QML only. It reads libtaskmanager’s SandboxEngine and SandboxName roles from plasma-workspace’s patch of the same name; a libtaskmanager without them reads as empty and the tooltip draws no line. It is to be proposed upstream with it.

screenreader-save.patch makes the screen reader’s kded module write the setting to kaccessrc when it is switched over D-Bus with setEnabled, as its toggle (the Meta+Alt+S chord) already does. KDOS has no systemd user manager, so the module keeps Orca’s on-or-off in kaccessrc and starts Orca at login only when the file says it is on; without the save, a switch that calls setEnabled, such as the one on the Welcome tour’s Accessibility page, is forgotten at the next login. It is to be offered upstream.

lockscreen-clock.patch gives the lock screen a clock of its own, MonoClock.qml: Breeze’s clock in the fixed-width face with tabular figures, as the KDOS login screen draws it, so the login screen, the splash and the lock screen are one look. It is placed in the top 19% of the screen, the band above the centred mark of the KDOS wallpapers (62% of the height tall, see kdos-wallpapers); stock Breeze centres the clock between the top and the user list, which puts the date across the penguin’s head. The date is left out when the time and the date together do not fit the band, as on a screen 768 pixels tall. The time is drawn with plain spaces: en_US and other locales put U+202F before AM or PM, JetBrains Mono has no glyph for it, and the fallback face’s line makes the time 203 pixels tall instead of 127 at 1080, which leaves no room for the date. A wallpaper whose mark changes size or place has to change this band with it. It is to be offered upstream.

panel-opacity.patch hides the Opacity group of Panel Settings when the Plasma style turns adaptive transparency off, as the kdos style does. Plasma reports such a panel as Translucent whatever the style draws, so the group would show a disabled “Translucent” over the opaque KDOS panel. It is to be offered upstream.

layout-list-order.patch makes the keyboard settings’ Add Layout dialog list layouts from A to Z by name, ignoring case, and the variants of the chosen layout in the XKB registry’s order, the layout itself first, until a search is entered; a search sorts both by match score, best first, with equal scores kept in that order. Upstream sorts both lists by score alone; every score is 0 before a search, so the score gives no order, and the layout list opens at Wolof. The first row is xkeyboard-config’s “A user-defined custom Layout”, which sorts before Albanian. It is to be offered upstream.

desktop-label-light.patch gives the desktop’s icon labels a backing under a light colour scheme. Upstream draws a label on the desktop white with a black shadow whatever the scheme; on the near-white wallpaper of a light accent such as paper the fill meets the ground at about 1:1 and only the shadow outlines it. When the Window colour set’s background has an HSL lightness above 0.5, a rounded black rectangle at 0.6 opacity is drawn behind the label’s painted text, Kirigami.Units.smallSpacing wider on each side, so the white label holds at least 4.5:1 over any wallpaper, a photo included (about 5.7:1 over pure white). Under a dark scheme the label is upstream’s, shadow only. The test reads the backing’s own Window theme and sets its opacity, 0 under a dark scheme, never its visibility, so the backing follows a scheme change at run time (kdos theme paper, the Welcome tour’s Light: Paper) without a plasmashell restart: libplasma’s Kirigami platform theme skips its colour sync while its item is invisible, so a backing the test hid would keep the dark scheme’s background and never show. Labels in a folder popup or a folder-view widget are not on the root view and keep the scheme’s text colour. It is to be offered upstream.

layouts-start-from-session.patch fills the keyboard settings’ layout list with the layouts the session runs when Configure layouts is turned on over an empty list, so the first layout added joins them rather than replacing them. An account whose kxkbrc names no layout has an empty list: KDOS seeds no kxkbrc for a US account, because KWin reads LayoutList whatever Use says, and a seeded list would pin the session and keep locale1’s layout from reaching it. The layouts come from KWin’s org.kde.keyboard /Layouts getLayoutsList, which names no variant; the variants come from XKB_DEFAULT_VARIANT when XKB_DEFAULT_LAYOUT names the same layouts, as startplasma sets both from locale1 for such an account. Without KWin on the session bus the two variables alone answer, and without either the list starts at us. The rows are added through the layout model, so the page asks for Apply. It is to be offered upstream.

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-desktop'

What kpkg does

kpkg runs these steps, in this order, as root inside the chroot. The port directory is /ports/core/kde/plasma-desktop.

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-desktop
echo 'fff6177d217e60ab747cb34e35ef249afab41c72bbd5ea61d3471ef88864bd80  plasma-desktop-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-desktop
SRC=$SRC_ROOT/plasma-desktop-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-desktop-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/sandbox-badge.patch"
patch -p1 -i "$PORT_SRC/screenreader-save.patch"
patch -p1 -i "$PORT_SRC/lockscreen-clock.patch"
patch -p1 -i "$PORT_SRC/panel-opacity.patch"
patch -p1 -i "$PORT_SRC/layout-list-order.patch"
patch -p1 -i "$PORT_SRC/desktop-label-light.patch"
patch -p1 -i "$PORT_SRC/layouts-start-from-session.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_KF6Baloo=ON \
	-D CMAKE_REQUIRE_FIND_PACKAGE_SDL2=ON \
	-D CMAKE_REQUIRE_FIND_PACKAGE_UDev=ON \
	-D CMAKE_REQUIRE_FIND_PACKAGE_XdgUserDir=ON \
	-D CMAKE_DISABLE_FIND_PACKAGE_AccountsQt6=ON \
	-D CMAKE_DISABLE_FIND_PACKAGE_KAccounts6=ON \
	-D CMAKE_DISABLE_FIND_PACKAGE_PackageKitQt6=ON \
	-Wno-dev
cmake --build build
DESTDIR=$PKG cmake --install build
rm -rf "$PKG/usr/lib/systemd"

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/plasma-desktop, 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-desktop-6.8.2-3.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-desktop, and runs the triggers its paths call for.

Contents

Installed programs: kaccess, knetattach, krunner-plugininstaller, plasma-emojier, solid-action-desktop-gen, tastenbrett.

Installed libraries: libkglobalaccelmodel.so.

Installed directories: /usr/lib/qt6/plugins/plasma/kcms/desktop, /usr/lib/qt6/qml/org/kde/plasma/activityswitcher, /usr/lib/qt6/qml/org/kde/plasma/emoji, /usr/lib/qt6/qml/org/kde/plasma/private/kcm_keyboard, /usr/lib/qt6/qml/org/kde/private/desktopcontainment, /usr/share/doc/HTML/en/kcontrol/baloo, /usr/share/doc/HTML/en/kcontrol/clock, /usr/share/doc/HTML/en/kcontrol/joystick, /usr/share/doc/HTML/en/kcontrol/kcm_recentFiles, /usr/share/doc/HTML/en/kcontrol/kcmaccess, /usr/share/doc/HTML/en/kcontrol/kcmactivities, /usr/share/doc/HTML/en/kcontrol/kcmsmserver, /usr/share/doc/HTML/en/kcontrol/kded, /usr/share/doc/HTML/en/kcontrol/keyboard, /usr/share/doc/HTML/en/kcontrol/keys, /usr/share/doc/HTML/en/kcontrol/mouse, /usr/share/doc/HTML/en/kcontrol/paths, /usr/share/doc/HTML/en/kcontrol/solid-actions, /usr/share/doc/HTML/en/kcontrol/solid-device-automounter, /usr/share/doc/HTML/en/kcontrol/spellchecking, /usr/share/doc/HTML/en/kcontrol/splashscreen, /usr/share/doc/HTML/en/kcontrol/workspaceoptions, /usr/share/doc/HTML/en/kfontview, /usr/share/doc/HTML/en/knetattach, /usr/share/doc/HTML/en/plasma-desktop, /usr/share/kcm_recentFiles, /usr/share/kcmkeys, /usr/share/kcmmouse, /usr/share/kcmsolidactions, /usr/share/licenses/plasma-desktop, /usr/share/plasma/emoji, /usr/share/plasma/layout-templates/org.kde.plasma.desktop.appmenubar, /usr/share/plasma/layout-templates/org.kde.plasma.desktop.defaultPanel, /usr/share/plasma/layout-templates/org.kde.plasma.desktop.emptyPanel, /usr/share/plasma/packages/org.kde.paneltoolbox, /usr/share/plasma/plasmoids/org.kde.desktopcontainment, /usr/share/plasma/plasmoids/org.kde.plasma.activitypager, /usr/share/plasma/plasmoids/org.kde.plasma.folder, /usr/share/plasma/plasmoids/org.kde.plasma.icontasks, /usr/share/plasma/plasmoids/org.kde.plasma.minimizeall, /usr/share/plasma/shells/org.kde.plasma.desktop, /usr/share/sddm/themes/breeze, /usr/share/solid/devices.

Notes

Two of the settings modules talk to system services that this package does not provide. Date & Time saves the time, the time zone and NTP through org.freedesktop.timedate1, which kdos-settingsd serves; without that service on the system bus the module shows its settings and cannot apply any. The Users module, which edits accounts through accountsservice, is plasma-workspace’s.

The Tablet settings module, on by default, makes libwacom and wayland-protocols requirements of the configure, and the keyboard module needs xkeyboard-config’s data directory, found through pkg-config from xkeyboard-config. libX11 is required: kaccess, the accessibility daemon behind sticky and slow keys and the visual bell, is built only with it.

The input-method panel has backends for IBus and SCIM, each built when pkg-config finds the library; neither is a port, and fcitx5 talks to the panel over D-Bus with no backend of its own. The emoji selector draws with noto-emoji, which upstream only reports at configure time. kactivitymanagerd, which the activity settings and the pager talk to, and kpipewire, whose QML module the task manager’s window thumbnails import, are in depends for run time.

kaccess installs a systemd user unit under /usr/lib/systemd, which the package lint refuses (see What the package lint refuses); build.sh removes the directory. Its XDG autostart entry, phase 0, is what starts it in a Plasma session.