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

316.12. khelpcenter-26.08.2

Help centre — application handbooks, manual and info pages, with full-text search

Version 26.08.2, release 2
Shelf kde — KDE Plasma and Gear platform pieces outside Frameworks that have no other domain: KIO workers, thumbnailers, Plasma integration, KDE Wayland glue
Phase 44_apps (Applications), 270 of 422 in build order
Licence GPL-2.0-or-later AND (GPL-2.0-only OR GPL-3.0-only) AND GFDL-1.2-or-later AND CC0-1.0
Homepage https://apps.kde.org/help/
Build time 0.9 SBU
Installed size 2.7 MiB in 114 files
Recipe ports/core/kde/khelpcenter/kpkgbuild

About

KHelpCenter is the program behind every KDE application’s Help menu: it opens help:/ URLs, lists the installed handbooks by category beside manual pages, info pages and the System Settings and KIO worker documentation, and searches them. Pages render in a qt6-qtwebengine view, which upstream requires. Full-text search runs khc_xapianindexer to build a xapian-core index of the handbooks, whose HTML it reads with libxml2, and khc_xapiansearch to query it.

Sources

Dependencies

Depends on: cmake, ninja, extra-cmake-modules, qt6-qtbase, qt6-qtwebengine, karchive, kbookmarks, kconfig, kconfigwidgets, kcoreaddons, kcompletion, kdbusaddons, kdoctools, ki18n, kio, kxmlgui, kservice, ktexttemplate, kwidgetsaddons, kwindowsystem, xapian-core, libxml2, kio-extras, python3.

Required by (1): kde-gear-core.

Patches

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

start-page.patch makes a launch with no URL open the start page. Upstream’s Application::newInstance() opens a page only for a URL on the command line, and the menu entry runs khelpcenter %u with none, so the Help Center opened from the menu would show an empty content pane until a page is picked. No flag or configuration key changes what is loaded at start: StartUrl sets only the Home action’s target. A URL on the command line opens as before. The patch is to be offered upstream to KDE’s khelpcenter as a merge request.

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/44_apps/phase.env && kpkg install khelpcenter'

What kpkg does

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

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/khelpcenter
echo '3be3417b8326ee49a02e83a6187698d777207f97d2ed8973b3375524798eb44c  khelpcenter-26.08.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/khelpcenter
SRC=$SRC_ROOT/khelpcenter-26.08.2
PKG=$SRC_ROOT/pkg
rm -rf "$SRC_ROOT"
mkdir -p "$SRC" "$PKG"
tar --no-same-permissions --warning=no-unknown-keyword -xf khelpcenter-26.08.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 five paths PKGNAME, PORT_SRC, SRC_ROOT, SRC and PKG set as shell variables. Its body, verbatim:

patch -p1 -i "$PORT_SRC/start-page.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 \
	-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/khelpcenter, 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 khelpcenter-26.08.2-2.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/khelpcenter, and runs the triggers its paths call for.

Contents

Installed programs: khelpcenter.

Installed directories: /usr/lib/libexec/__pycache__, /usr/share/doc/HTML/en/fundamentals, /usr/share/doc/HTML/en/khelpcenter, /usr/share/doc/HTML/en/onlinehelp, /usr/share/khelpcenter/plugins/Applications, /usr/share/khelpcenter/plugins/Manpages, /usr/share/khelpcenter/plugins/Scrollkeeper, /usr/share/khelpcenter/searchhandlers, /usr/share/khelpcenter/templates, /usr/share/licenses/khelpcenter.

Notes

Handbooks are DocBook that kdoctools renders when a help:/ page is opened, so what KHelpCenter lists is whatever each port built with its handbook on. man:/ and info:/ pages are served by workers from kio-extras, which the build does not check and depends names for run time.

The manual-page search is khc_mansearch.py, run with python3, which calls whatis -w and apropos -L <lang> --and. Those are man-db’s options. This tree’s apropos and whatis are mandoc’s, whose whatis -w prints file names instead of matching wildcards and whose apropos refuses -L, so the manual-page search returns nothing while handbook search and browsing work. The entry is OnlyShowIn=KDE, so it is listed only in a Plasma session.