354.2. kglobalacceld-6.8.2
Global shortcut registry library that KWin loads to serve org.kde.kglobalaccel
6.8.2-1 · LGPL-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 · 643.3 KiB, 15 files · 50_desktop, 2 of 92 · ports/core/kde/kglobalacceld
Homepage: https://invent.kde.org/plasma/kglobalacceld
Why it is in KDOS. The comment above it in script/phases/50_desktop/packages.txt:
The global shortcut registry KWin loads to serve org.kde.kglobalaccel.
kglobalacceld is the registry of global shortcuts: which component owns which key combination, the shortcuts every application registers through kglobalaccel, and the actions desktop entries declare. It is a library, libKGlobalAccelD, not a program of its own: kwin links it, serves org.kde.kglobalaccel on the session bus with it, and matches every key press against it before a window sees the key. The shortcuts are kept in ~/.config/kglobalshortcutsrc.
Depends on: cmake, ninja, extra-cmake-modules, qt6-qtbase, qt6-qttools, kconfig, kcoreaddons, kglobalaccel, kservice, kio, kjobwidgets.
Required by (4): kde-plasma, kwin, kwin-effect-kdos-keys, kwin-script-kdos-runraise.
Sources: kglobalacceld-6.8.2.tar.xz (50.8 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 kglobalacceld'
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 \
-D qdbus_EXECUTABLE=/usr/bin/qdbus6 \
-Wno-dev
cmake --build build
DESTDIR=$PKG cmake --install build
-D KF_SKIP_PO_PROCESSING=ON— Compiles none of the translation catalogues. kpkg removes every non-English catalogue from the package anyway (see Size and language policy), so this only saves build time.-D qdbus_EXECUTABLE=/usr/bin/qdbus6— The command compiled into the shortcuts it migrates from an oldkhotkeysrc: a D-Bus action there becomes a command line that runsqdbuswith the action’s service, path and method. Upstream takes the first ofqdbus,qdbus6andqdbus-qt6onPATHat configure time, and falls back to a bareqdbuswhen none is there. The tree’s qt6-qttools installs the Qt 6 client as/usr/bin/qdbus6(the plain name is only in/usr/lib/qt6/bin), so naming the path keeps a migrated shortcut working whatever the build chroot’sPATHholds.-Wno-dev— Silences CMake’s warnings meant for the project’s own developers.
Libraries: libKGlobalAccelD.so.
Directories: /usr/include/KGlobalAccelD, /usr/lib/cmake/KGlobalAccelD, /usr/share/licenses/kglobalacceld.
The install has no executable, no D-Bus activation file and no autostart entry: the shortcuts work while KWin runs and not before, so the SDDM greeter, which runs KWin with --no-global-shortcuts, has none. The library is installed without the unversioned libKGlobalAccelD.so link a -lKGlobalAccelD would need; a consumer links it through the CMake package KGlobalAccelD, whose target names the versioned file, as KWin does.