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

232.1. dolphin-26.08.2

File manager — tabs, split views, places, previews, a terminal panel and devices

Version 26.08.2, release 1
Shelf files — File managers, disk-usage analysers, duplicate finders and file locators
Phase 43_toolkits (Toolkits), 140 of 344 in build order
Licence GPL-2.0-or-later
Homepage https://apps.kde.org/dolphin/
Build time 15.9 SBU
Installed size 6.4 MiB in 89 files
Recipe ports/core/files/dolphin/kpkgbuild

About

Dolphin is KDE’s file manager: tabs, split views, the Places panel, previews, file metadata and tags, and a terminal panel. It is built on KDE Frameworks 6 and Qt 6, as an application; nothing of the desktop links it.

Sources

Dependencies

Depends on: cmake, ninja, extra-cmake-modules, qt6-qtbase, qt6-qtmultimedia, kcmutils, knewstuff, kcoreaddons, ki18n, kdbusaddons, kbookmarks, kconfig, kio, kparts, solid, kiconthemes, kcompletion, ktextwidgets, knotifications, kcrash, kwindowsystem, kwidgetsaddons, kcodecs, kguiaddons, kcolorscheme, kfilemetadata, baloo, baloo-widgets, kdoctools, musl-fts, konsole, kio-extras, udisks2, breeze-icons, librsvg.

Required by (2): dolphin-plugins, kde-gear-core.

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/43_toolkits/phase.env && kpkg install dolphin'

What kpkg does

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

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/files/dolphin
echo '8bb1bdfcab19dd62d7625270fc6cc3c81145600d67b0599fc9fe89d711cc6730  dolphin-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/dolphin
SRC=$SRC_ROOT/dolphin-26.08.2
PKG=$SRC_ROOT/pkg
rm -rf "$SRC_ROOT"
mkdir -p "$SRC" "$PKG"
tar --no-same-permissions --warning=no-unknown-keyword -xf dolphin-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/app-id.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_KF6BalooWidgets=ON \
	-D CMAKE_REQUIRE_FIND_PACKAGE_KF6DocTools=ON \
	-D CMAKE_DISABLE_FIND_PACKAGE_KF6UserFeedback=ON \
	-D CMAKE_DISABLE_FIND_PACKAGE_PackageKitQt6=ON \
	-Wno-dev
cmake --build build
DESTDIR=$PKG cmake --install build
rm -rf "$PKG/usr/lib/systemd"

if [ -d "$PKG/usr/share/man" ]; then
	find "$PKG/usr/share/man" -mindepth 1 -maxdepth 1 ! -name 'man*' -exec rm -rf {} +
fi

for s in 48 64 128; do
	install -d "$PKG/usr/share/icons/hicolor/${s}x${s}/apps"
	rsvg-convert -w $s -h $s /usr/share/icons/breeze/apps/48/system-file-manager.svg \
		-o "$PKG/usr/share/icons/hicolor/${s}x${s}/apps/org.kde.dolphin.png"
done

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/dolphin, 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 dolphin-26.08.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/dolphin, and runs the triggers its paths call for.

Contents

Installed programs: dolphin, servicemenuinstaller.

Installed libraries: libdolphinprivate.so, libdolphinvcs.so.

Installed directories: /usr/include/Dolphin, /usr/lib/cmake/DolphinVcs, /usr/lib/qt6/plugins/dolphin/kcms, /usr/share/doc/HTML/en/dolphin, /usr/share/dolphin, /usr/share/licenses/dolphin.

Notes

musl has no fts(3). The folder-size counter’s configure check finds fts.h and libfts from musl-fts, and links -lfts when the C library lacks fts_open.

konsole, whose part is the terminal panel, and kio-extras, the thumbnailers, are in depends for run time only; the build does not check for them. Devices in the Places panel come from Solid over udisks2.

The install puts a systemd user unit, plasma-dolphin.service, under /usr/lib/systemd; build.sh removes the directory, since KDOS has no systemd (see No systemd). KF_SKIP_PO_PROCESSING stops only ki18n_install(): kdoctools_install() still builds the handbook in every translated language, and kpkg’s language rule removes /usr/share/doc/HTML/<lang>/ from the package. Dolphin installs no manual page, translated or not, so the loop in build.sh that removes every directory under /usr/share/man that is not a man<section> one finds nothing to remove.

The desktop entry names the icon org.kde.dolphin. Upstream installs it as an SVG only, in hicolor/scalable; the PNGs in its source become the macOS and Windows application icons. build.sh also renders Breeze’s system-file-manager SVG with rsvg-convert from librsvg into PNGs named org.kde.dolphin in three hicolor sizes.