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

298.3. krdc-26.08.2

Remote desktop client — VNC and RDP viewer with bookmarks, network discovery and SSH tunnels

Version 26.08.2, release 1
Shelf virt — Virtual machines, their tooling, and remote-desktop and VNC protocols
Phase 44_apps (Applications), 420 of 422 in build order
Licence GPL-2.0-or-later AND (LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL) AND BSD-3-Clause AND GFDL-1.2-or-later AND CC0-1.0
Homepage https://apps.kde.org/krdc/
Build time 6.3 SBU
Installed size 1.6 MiB in 38 files
Recipe ports/core/virt/krdc/kpkgbuild

About

KRDC is KDE’s remote desktop client: it connects to another machine over VNC, through libvncserver’s client library, or over RDP, through FreeRDP 3 (freerdp), keeps bookmarks, finds VNC and RDP servers on the local network over DNS-SD with kdnssd, and can reach a VNC server through an SSH tunnel. Saved passwords go to the Secret Service through qtkeychain.

Sources

Dependencies

Depends on: cmake, ninja, pkgconf, extra-cmake-modules, qt6-qtbase, qt6-qtwayland, wayland, qtkeychain, kconfig, kcmutils, kdnssd, knotifyconfig, knotifications, kbookmarks, kiconthemes, kxmlgui, kcompletion, kwidgetsaddons, kwindowsystem, ki18n, kio, kcrash, kguiaddons, kstatusnotifieritem, kdoctools, libvncserver, freerdp, libssh, kcoreaddons, shared-mime-info.

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

Patches

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

app-id.patch is KDOS’s own and changes the desktop entry’s StartupWMClass from krdc to org.kde.krdc, the Wayland app_id KAboutData gives KRDC’s window from the entry’s own desktop file name. dolphin, ark and other KDE applications whose class is not their app_id carry the same change. Plasma’s task manager matches a window to its entry by the app_id as well as by StartupWMClass, so the launcher and the running window agree either way; the class matters to anything that reads StartupWMClass alone.

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

What kpkg does

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

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/virt/krdc
echo '862d375f3e1f677ab62ed3b379ee2ff6e90c25fd4d04be6b8b6658c35a8dc196  krdc-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/krdc
SRC=$SRC_ROOT/krdc-26.08.2
PKG=$SRC_ROOT/pkg
rm -rf "$SRC_ROOT"
mkdir -p "$SRC" "$PKG"
tar --no-same-permissions --warning=no-unknown-keyword -xf krdc-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 WITH_VNC=ON \
	-D WITH_RDP=ON \
	-D CMAKE_REQUIRE_FIND_PACKAGE_LibSSH=ON \
	-D CMAKE_REQUIRE_FIND_PACKAGE_Qt6WaylandClient=ON \
	-D CMAKE_REQUIRE_FIND_PACKAGE_KF6DocTools=ON \
	-D CMAKE_REQUIRE_FIND_PACKAGE_SharedMimeInfo=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/krdc, 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 krdc-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/krdc, and runs the triggers its paths call for.

Contents

Installed programs: krdc.

Installed libraries: libkrdccore.so.

Installed directories: /usr/include/krdc, /usr/lib/qt6/plugins/krdc, /usr/share/doc/HTML/en/krdc, /usr/share/licenses/krdc.

Notes

Network discovery needs avahi-daemon running; without it the browser lists nothing and connections by address still work. The entry claims x-scheme-handler/vnc and x-scheme-handler/rdp, which Remmina claims too; the desktop’s mimeapps table, /usr/share/kdos/xdg/kde-mimeapps.list, opens both kinds of link in Remmina, so KRDC is started from its menu entry or with an address on its command line.