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

257.25. kio-6.31.0

KDE Frameworks: network-transparent file access, workers and file dialogs

Version 6.31.0, release 2
Shelf kf6 — KDE Frameworks 6: every port whose homepage is under invent.kde.org/frameworks, whatever it does
Phase 43_toolkits (Toolkits), 63 of 344 in build order
Licence LGPL-2.0-or-later AND LGPL-2.0-only AND (LGPL-2.0-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL) AND (LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL) AND GPL-2.0-or-later AND BSD-2-Clause AND (LGPL-2.0-only OR LGPL-3.0-only) AND LGPL-2.1-or-later AND (GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL) AND GPL-2.0-only AND CC0-1.0
Homepage https://invent.kde.org/frameworks/kio
Build time 0.9 SBU
Installed size 11.4 MiB in 471 files
Recipe ports/core/kf6/kio/kpkgbuild

About

KIO is KDE’s network-transparent file access: one job API for every kind of location, each URL scheme handled by a worker process. KIO itself carries the workers for local files, FTP, HTTP and WebDAV, the trash and help:; kio-extras adds SFTP, SMB, archives and the rest. It also provides the file open and save dialogs, the file properties dialog and the “Open With” machinery of KDE applications, the kiod6 daemon and the ktrash6 command. dolphin, kate, okular and many KDE applications in the tree link it.

Why it is in KDOS

The comment above the 61 ports from karchive to kfilemetadata in script/phases/43_toolkits/packages.d/kf6.txt:

The libraries KDE applications are built on, without Plasma.

Sources

Dependencies

Depends on: cmake, ninja, extra-cmake-modules, qt6-qtbase, karchive, kbookmarks, kcolorscheme, kcompletion, kconfig, kcoreaddons, kcrash, kdbusaddons, kded, kdoctools, kguiaddons, ki18n, kiconthemes, kitemviews, kjobwidgets, kservice, kwallet, kwidgetsaddons, kwindowsystem, solid, switcheroo-control, acl, util-linux, libxml2, libxslt.

Required by (178): akonadi-calendar, akonadi-contacts, akonadi-import-wizard, akonadi-mime, akonadi-search, akonadiconsole, akregator, ark, audex, audiocd-kio, baloo, baloo-widgets, bluedevil, calendarsupport, calligra, cantor, digikam, discover, dolphin, dolphin-plugins, dragon, elisa, falkon, ffmpegthumbs, filelight, grantlee-editor, gwenview, haruna, incidenceeditor, itinerary, juk, k3b, kaccounts-integration, kaccounts-providers, kactivitymanagerd, kaddressbook, kalarm, kalgebra, kalzium, kamera, kamoso, kanagram, kate, kbackup, kbounce, kcachegrind, kclock, kcm-kdos-system, kcmutils, kde-cli-tools, kde-dev-utils, kdeconnect, kdegraphics-thumbnailers, kdenetwork-filesharing, kdenlive, kdepim-addons, kdepim-runtime, kdeplasma-addons, kdesdk-kio, kdesdk-thumbnailers, kdevelop, kdf, kdialog, kdiff3, kdos-discover, kdos-installer-gui, kdos-transcribe, keditbookmarks, kfind, kget, kglobalacceld, kgoldrunner, kgpg, khangman, khelpcenter, kidentitymanagement, kigo, kimap, kinfocenter, kio-admin, kio-extras, kio-fuse, kio-gdrive, kio-library, kio-zeroconf, kiten, kjumpingcube, kldap, kleopatra, klickety, kmail, kmail-account-wizard, kmailtransport, kmenuedit, kmouth, kmplot, knights, knotifyconfig, koko, kolf, kolourpaint, konqueror, konsole, kontact, kontactinterface, konversation, korganizer, kparts, kpat, kpimtextedit, krdc, krecorder, kreversi, kscreenlocker, ksmtp, ksudoku, ksystemlog, ksystemstats, ktextaddons, ktexteditor, ktimer, ktorrent, ktuberling, kturtle, kup, kwalletmanager, kwave, labplot, libkcddb, libkeduvocdocument, libkomparediff2, libksieve, libktorrent, libplasma, libreoffice, lokalize, mailcommon, mailimporter, marble, massif-visualizer, merkuro, messagelib, mimetreeparser, neochat, okular, palapeli, parley, partitionmanager, pim-data-exporter, pim-sieve-editor, pimcommon, plasma-browser-integration, plasma-desktop, plasma-disks, plasma-integration, plasma-nm, plasma-sdk, plasma-systemmonitor, plasma-vault, plasma-welcome, plasma-workspace, plasma5support, powerdevil, print-manager, purpose, qrca, sddm-kcm, skanlite, skanpage, skladnik, spectacle, step, syncthingtray, systemsettings, tokodon, umbrello, xdg-desktop-portal-kde, yakuake.

Patches

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

kiod6-desktop-exec-path.patch sets the Exec= line of org.kde.kiod6.desktop to /usr/lib/libexec/kf6/kiod6. The daemon is installed there, on no PATH directory, so a bare Exec=kiod6 names a program nothing can start, and the image’s entrycheck gate refuses a desktop entry whose program does not resolve. The patch is KDOS’s own; no upstream merge request holds it.

places-size-hint.patch makes KFilePlacesView::sizeHint() measure a row the way the delegate paints it: the delegate’s own icon size, not PM_SmallIconSize, with the icon, text and eject areas and their margins, the widest group header, the frame and the vertical scroll bar. A dock takes the hint as its first width, so a hint short of the painted row opens Dolphin’s Places panel, on a launch with no saved dolphinstaterc, too narrow for Recent Locations, which ends in an ellipsis; the file dialogs’ places list sizes from the same hint. It is to be offered upstream.

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

What kpkg does

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

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/kf6/kio
echo 'cdc8e3787be1f4a5c8f8a45fabab5cf540ef6380c549c6fd984f15f093b5eac0  kio-6.31.0.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/kio
SRC=$SRC_ROOT/kio-6.31.0
PKG=$SRC_ROOT/pkg
rm -rf "$SRC_ROOT"
mkdir -p "$SRC" "$PKG"
tar --no-same-permissions --warning=no-unknown-keyword -xf kio-6.31.0.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/kiod6-desktop-exec-path.patch"
patch -p1 -i "$PORT_SRC/places-size-hint.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 BUILD_DESIGNERPLUGIN=OFF \
	-D WITH_X11=ON \
	-D WITH_WAYLAND=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/kio, 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 kio-6.31.0-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/kio, and runs the triggers its paths call for.

Contents

Installed programs: ktelnetservice6, ktrash6.

Installed libraries: libKF6KIOCore.so, libKF6KIOFileWidgets.so, libKF6KIOGui.so, libKF6KIOWidgets.so, libkuriikwsfiltereng_private.so.

Installed directories: /usr/include/KF6/KIO, /usr/include/KF6/KIOCore, /usr/include/KF6/KIOFileWidgets, /usr/include/KF6/KIOGui, /usr/include/KF6/KIOWidgets, /usr/lib/cmake/KF6KIO, /usr/lib/qt6/plugins/kf6/urifilters, /usr/share/doc/HTML/en/kioworker6/data, /usr/share/doc/HTML/en/kioworker6/file, /usr/share/doc/HTML/en/kioworker6/ftp, /usr/share/doc/HTML/en/kioworker6/help, /usr/share/doc/HTML/en/kioworker6/http, /usr/share/doc/HTML/en/kioworker6/webdav, /usr/share/kf6/searchproviders, /usr/share/licenses/kio.

Notes

Two of KIO’s dependencies are optional upstream and used when the configure finds them: kdoctools, for the help: worker and the handbooks, and acl, for access control lists in the copy jobs and the properties dialog. Both are in depends, so both are built in. kwallet, also optional and in depends, is where kpasswdserver, the kiod6 module that answers workers’ password requests, keeps the passwords a user asks it to remember. switcheroo-control is a run-time dependency: KIO asks it over D-Bus whether the machine has a second GPU, so that an application whose desktop entry asks for the discrete one can be started on it.

kded is a run-time dependency too, as upstream’s configure reports: two of KIO’s modules, trashdirnotify and remotedirnotify, run inside kded6 and tell open views when the trash or remote:/ changes. trashdirnotify watches the trash directories themselves, on the home filesystem and on every mounted device, so without the daemon a Dolphin window on the trash does not update when a program outside KIO, a GTK one for instance, moves a file there.