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

345.2. plasma-systemmonitor-6.8.2

Plasma System Monitor — sensor pages, history charts and the process table, over ksystemstats

Version 6.8.2, release 1
Shelf sysmon — Process, resource and system-information monitors
Phase 50_desktop (Desktop), 10 of 92 in build order
Licence (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 LGPL-2.0-or-later AND LGPL-3.0-or-later AND BSD-3-Clause AND CC0-1.0
Homepage https://invent.kde.org/plasma/plasma-systemmonitor
Build time 2.3 SBU
Installed size 3.3 MiB in 83 files
Recipe ports/core/sysmon/plasma-systemmonitor/kpkgbuild

About

Plasma System Monitor is the desktop’s resource monitor: editable pages of sensor faces (line and bar charts, gauges, tables) for CPU, memory, disks, network and GPUs, a History page and the process table, each face exportable to the panel or desktop as a widget. The sensors come from the ksystemstats daemon over D-Bus, read through libksysguard, which also kills and renices processes through its KAuth helper. Meta+Esc opens it: the install puts a copy of the desktop entry under /usr/share/kglobalaccel, whose X-KDE-Shortcuts the global shortcut daemon reads.

Why it is in KDOS

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

Plasma System Monitor: sensor pages, history and the process table.

Sources

Dependencies

Depends on: cmake, ninja, extra-cmake-modules, qt6-qtbase, qt6-qtdeclarative, ki18n, kconfig, kcoreaddons, kcrash, kservice, kglobalaccel, kio, kdbusaddons, knewstuff, kitemmodels, kwindowsystem, kpackage, kiconthemes, kdeclarative, libksysguard, kirigami-addons, kirigami, kquickcharts, ksystemstats, python3.

Required by (2): kde-plasma, ksystemstats-kdos.

Patches

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

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

What kpkg does

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

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/sysmon/plasma-systemmonitor
echo 'd3d795edd70579a967f0b146864610c2cb58379f283356eaadd18fd7e57e4524  plasma-systemmonitor-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-systemmonitor
SRC=$SRC_ROOT/plasma-systemmonitor-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-systemmonitor-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/kiosk-get-new.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_KF6Kirigami=ON \
	-D CMAKE_REQUIRE_FIND_PACKAGE_KF6QuickCharts=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/plasma-systemmonitor, 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-systemmonitor-6.8.2-1.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-systemmonitor, and runs the triggers its paths call for.

Contents

Installed programs: plasma-systemmonitor.

Installed libraries: libPlasmaSystemMonitorPage.so, libPlasmaSystemMonitorTable.so.

Installed directories: /usr/lib/qt6/qml/org/kde/ksysguard/page, /usr/lib/qt6/qml/org/kde/ksysguard/table, /usr/share/ksysguard/sensorfaces/org.kde.ksysguard.applicationstable, /usr/share/ksysguard/sensorfaces/org.kde.ksysguard.processtable, /usr/share/licenses/plasma-systemmonitor, /usr/share/plasma/kinfocenter.

Notes

The Applications page, and the Applications table on the Overview page, group processes by the cgroup each application was started in, through libksysguard’s application model, whose KDOS patches root it at the login’s cgroup and count a box’s container processes with its scope, so each running box is one application.

The KDOS defaults for the sidebar are in /usr/share/kdos/xdg/systemmonitorrc:

The file is systemmonitorrc, the name the program’s .kcfg gives, and it is read through XDG_CONFIG_DIRS, so a person’s own ~/.config/systemmonitorrc overrides it.

The “Get New Pages…”, “Get New Presets…” and “Get New Display Styles…” actions are KNewStuff downloads (plasma-systemmonitor.knsrc, systemmonitor-presets.knsrc and systemmonitor-faces.knsrc). KDOS turns KNewStuff off with ghns=false under [KDE Action Restrictions] in /usr/share/kdos/xdg/kdeglobals; KNewStuff’s QML action is then disabled and hidden. Two entries that open it do not follow that action: the File menu’s “Get New Pages…” calls the download dialog directly and stays visible, doing nothing when clicked, and the sidebar’s context menu shows the action greyed out. kiosk-get-new.patch makes both entries take the visibility KNewStuff’s own kiosk check gives, and collapses the hidden context-menu row to no height. The menus then offer none of the downloads and nothing is fetched.

ksystemstats is in depends for run time; the configure only looks for its program and reports it missing in a build root without it. The session bus starts it on the first sensor request. python3 is there for plasma-systemmonitor-replace-vmpss.py, the kconf_update script that rewrites an older configuration’s memory column, which kconf_update runs once per account.