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
plasma-desktop-6.8.2.tar.xz(17.1 MiB)
sha256fff6177d217e60ab747cb34e35ef249afab41c72bbd5ea61d3471ef88864bd80
upstream: https://download.kde.org/stable/plasma/6.8.2/plasma-desktop-6.8.2.tar.xz
archive copy: sources-3/kde--plasma-desktop-6.8.2.tar.xz
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: 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.
desktop-label-light.patch— folder view: back the desktop labels under a light colour schemeA root-view label is drawn white with a black shadow whatever the colour scheme. When the window colour set is light (background HSL lightness above 0.5), draw a rounded black backing at 0.6 opacity behind the label's painted text, so the white label holds at least 4.5:1 on a light wallpaper. Under a dark scheme the label is unchanged.
The light test sets the backing's opacity, never its visibility, so the backing follows a colour scheme change at run time: the Plasma platform theme skips its colour sync while its item is invisible, and a backing hidden by the test would keep a dark scheme's colours through a switch to a light one until plasmashell restarts.
layout-list-order.patch— List keyboard layouts A to Z in the Add Layout dialog until a searchThe layout and variant proxies sort by search score alone, descending. Every score is 0 before a search, so the score says nothing about the order the lists open in, and the layout list opens at Wolof. Without a search the layouts now sort by description, ascending and ignoring case, and the variants keep the XKB registry's order, the layout first. A search sorts by score, descending, over that order, so rows of equal score stay in it.
layouts-start-from-session.patch— Keyboard KCM: turning on layouts starts from the layouts the session runsAn account whose kxkbrc names no layout opens the Layouts page with an empty list. Turning on "Configure layouts" kept it empty, so the first layout added became the only one and replaced the layout the session was running. When the list is empty as the option is turned on, fill it with the layouts KWin runs (org.kde.keyboard /Layouts getLayoutsList), their variants from XKB_DEFAULT_VARIANT when XKB_DEFAULT_LAYOUT names the same layouts; from the XKB_DEFAULT_* variables alone without KWin; and with "us" without either. The rows are added through the model, so the page asks for Apply.
lockscreen-clock.patch— Set the lock screen clock in the fixed-width face, above the wallpaper markThe lock screen draws its own clock, MonoClock.qml: Breeze's Clock in the fixed-width face with tabular figures, as the KDOS login screen draws it. It is placed in the band above the centred mark of the KDOS wallpapers, the top 19% of the screen, rather than half way between the top and the user list, where the date would cross the mark; the date is left out when the time and the date together do not fit the band.
panel-opacity.patch— Hide the panel Opacity group when the Plasma style has no adaptive transparencyPanelView reports a Translucent panel whenever the style turns adaptive transparency off, and the configuration dialog shows that as a disabled combo box whatever the style really draws, so an opaque style's panel reads "Translucent". Without the option there is nothing to choose, so the group is not shown.
sandbox-badge.patch— taskmanager: name a window's sandbox in its tooltipA window task whose application runs in a sandbox gets a line in its tooltip's subtext, from libtaskmanager's SandboxEngine and SandboxName roles: "In box: <box>" for a KDOS box, "Flatpak: <id>" for a Flatpak, and "In sandbox: <name>" for any other engine. Grouped tooltips show it per window. A libtaskmanager without the roles answers nothing and the line is not drawn.
screenreader-save.patch— screenreader: save the setting in setEnabled(), as toggle() doesWithout systemd the module keeps whether Orca runs in kaccessrc and starts it at login only when that file says so. toggle() saves the change; setEnabled(), which System Settings and other D-Bus callers use, changed only the value in memory, so its choice was lost at the next login.
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:
-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_KF6Baloo=ON— The File Search settings module is built only when baloo is found, which upstream reports as recommended and does not require.-D CMAKE_REQUIRE_FIND_PACKAGE_SDL2=ON— The Game Controller settings module is built only when SDL 2 is found; sdl2-compat provides it over SDL 3.-D CMAKE_REQUIRE_FIND_PACKAGE_UDev=ON— The Game Controller module lists devices through libudev from eudev, which upstream looks for quietly.-D CMAKE_REQUIRE_FIND_PACKAGE_XdgUserDir=ON— The Paths settings module writes the Desktop, Documents and other folders to~/.config/user-dirs.dirs, the file xdg-user-dirs creates at login, and names the defaults after xdg-user-dirs’ own. Upstream looks for itsxdg-user-dirprogram as a run-time dependency and only reports its absence.-D CMAKE_DISABLE_FIND_PACKAGE_AccountsQt6=ON— With-D CMAKE_DISABLE_FIND_PACKAGE_KAccounts6=ON: no OpenDesktop integration plugin, which signs in to the KDE Store through the accounts-sso stack. That stack, libaccounts-qt and kaccounts-integration, is not independs, and the plugin also needs signon’s OAuth2 plugin at run time; refusing both keeps the package the same whichever of them the build root holds.-D CMAKE_DISABLE_FIND_PACKAGE_PackageKitQt6=ON— No PackageKit integration, which the KRunner plugin installer uses to install a downloaded plugin’s package. PackageKit is not a port.-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-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.