354.8. kactivitymanagerd-6.8.2
KDE activity manager — the daemon behind activities, recent documents and resource scoring
6.8.2-1 · (GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL) AND GPL-2.0-or-later AND (LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL) AND CC0-1.0 · 1.4 SBU · 1.2 MiB, 20 files · 50_desktop, 30 of 92 · ports/core/kde/kactivitymanagerd
Homepage: https://invent.kde.org/plasma/kactivitymanagerd
Why it is in KDOS. The comment above it in script/phases/50_desktop/packages.txt:
The activity manager: activities, recent documents and resource scoring.
kactivitymanagerd is the session daemon behind Plasma’s activities and its usage statistics: it owns org.kde.ActivityManager on the session bus, keeps the list of activities and the one that is current, and records which files and applications are opened, in an SQLite database under ~/.local/share/kactivitymanagerd, so that Kickoff’s recent and frequent lists and KIO’s recentlyused:/ can be built. plasma-activities and plasma-activities-stats are its client libraries.
Depends on: cmake, ninja, extra-cmake-modules, qt6-qtbase, boost, kconfig, kcoreaddons, kcrash, kdbusaddons, kglobalaccel, ki18n, kio, kservice, kxmlgui.
Required by (3): kde-plasma, plasma-desktop, plasma-workspace.
Sources: kactivitymanagerd-6.8.2.tar.xz (97.0 KiB). Every step kpkg takes applies to this port.
Install: script/chroot/exec.sh bash -c 'source script/phases/50_desktop/phase.env && kpkg install kactivitymanagerd'
build.sh:
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 \
-Wno-dev
cmake --build build
DESTDIR=$PKG cmake --install build
rm -rf "$PKG/usr/lib/systemd"
-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.-Wno-dev— Silences CMake’s warnings meant for the project’s own developers.
Libraries: libkactivitymanagerd_plugin.so.
Directories: /usr/lib/qt6/plugins/kactivitymanagerd1, /usr/share/licenses/kactivitymanagerd.
The daemon is started by D-Bus activation. The install writes /usr/share/dbus-1/services/org.kde.ActivityManager.service with an Exec= line naming /usr/lib/libexec/kactivitymanagerd, which the session bus runs the first time a client calls the name, and a SystemdService= line that only a bus started by systemd reads. It also installs the systemd user unit that line names under /usr/lib/systemd, which the package lint refuses (see What the package lint refuses); build.sh removes the directory and the activation file is what starts it.
boost is needed at build time only, for its header-only containers; nothing links a Boost library.