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

293.3. kdeconnect-26.08.2

Files, clipboard, notifications and media control between this machine and a phone, over the LAN or Bluetooth

Version 26.08.2, release 1
Shelf mobile — Phones, media players and cameras over USB or the network
Phase 44_apps (Applications), 297 of 422 in build order
Licence GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
Homepage https://kdeconnect.kde.org/
Build time 11.5 SBU
Installed size 10.4 MiB in 148 files
Recipe ports/core/mobile/kdeconnect/kpkgbuild

About

KDE Connect pairs this machine with a phone that runs the KDE Connect app, over the LAN or Bluetooth: it shares files and the clipboard, shows the phone’s notifications, controls media players either way, and reads and sends text messages. The port installs the daemon and its plugins, the kdeconnect-app and kdeconnect-sms windows, kdeconnect-indicator for the panel tray, and the kdeconnect-cli command. Browsing the phone’s files mounts them with sshfs.

Sources

Dependencies

Depends on: cmake, ninja, pkgconf, extra-cmake-modules, qt6-qtbase, qt6-qtdeclarative, qt6-qtmultimedia, qt6-qtwayland, qt6-qtconnectivity, kconfig, kcoreaddons, kcrash, kdbusaddons, kguiaddons, ki18n, kiconthemes, kitemmodels, kio, kcolorscheme, kservice, solid, kirigami, kirigami-addons, qqc2-desktop-style, kpeople, kwindowsystem, knotifications, kwidgetsaddons, kstatusnotifieritem, kpackage, modemmanager-qt, pulseaudio-qt, openssl, dbus, wayland, wayland-protocols, libxkbcommon, libei, libevdev, eudev, krdp, sshfs, librsvg, hicolor-icon-theme.

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

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

What kpkg does

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

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/mobile/kdeconnect
echo 'efd9d58deea6857f18d0c77c8bc68192839a83e4d4a518fc829a725459a3dba5  kdeconnect-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/kdeconnect
SRC=$SRC_ROOT/kdeconnect-26.08.2
PKG=$SRC_ROOT/pkg
rm -rf "$SRC_ROOT"
mkdir -p "$SRC" "$PKG"
tar --no-same-permissions --warning=no-unknown-keyword -xf kdeconnect-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:

cmake -S . -B build -G Ninja \
	-D CMAKE_INSTALL_PREFIX=/usr \
	-D KDE_INSTALL_LIBDIR=lib \
	-D CMAKE_INSTALL_LIBEXECDIR=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_X11=OFF \
	-D WITH_PULSEAUDIO=ON \
	-D BLUETOOTH_ENABLED=ON \
	-D LOOPBACK_ENABLED=OFF \
	-D INSTALL_UFW_APPLICATION_RULE=OFF \
	-D CMAKE_REQUIRE_FIND_PACKAGE_KF6ModemManagerQt=ON \
	-Wno-dev
cmake --build build
DESTDIR=$PKG cmake --install build

for s in 48 64 128 256; do
	install -d "$PKG/usr/share/icons/hicolor/${s}x$s/apps"
	rsvg-convert -w $s -h $s icons/app/sc-apps-kdeconnect.svg \
		-o "$PKG/usr/share/icons/hicolor/${s}x$s/apps/kdeconnect.png"
done

_apps="$PKG/usr/share/applications"
cat > "$_apps/org.kde.kdeconnect.app.desktop" <<'DESKTOP'
[Desktop Entry]
Type=Application
Name=KDE Connect
GenericName=Device Synchronization
Comment=Share files, clipboard and notifications with a phone on the LAN
Exec=kdeconnect-app
Icon=kdeconnect
Terminal=false
StartupWMClass=org.kde.kdeconnect.app
Categories=Qt;KDE;Network;
Keywords=phone;android;sync;share;clipboard;notification;kdeconnect;
DESKTOP
cat > "$_apps/org.kde.kdeconnect.sms.desktop" <<'DESKTOP'
[Desktop Entry]
Type=Application
Name=KDE Connect SMS
GenericName=Text Messages
Comment=Read and send a paired phone's text messages
Exec=kdeconnect-sms
Icon=kdeconnect
Terminal=false
StartupWMClass=org.kde.kdeconnect.sms
Categories=Qt;KDE;Network;
Keywords=sms;text;message;phone;kdeconnect;
DESKTOP
cat > "$_apps/org.kde.kdeconnect.nonplasma.desktop" <<'DESKTOP'
[Desktop Entry]
Type=Application
Name=KDE Connect Indicator
Comment=Paired phones in the panel tray
Exec=kdeconnect-indicator
Icon=kdeconnect
Terminal=false
StartupWMClass=org.kde.kdeconnect-indicator
Categories=Qt;KDE;Network;
NotShowIn=KDE;
Keywords=phone;tray;kdeconnect;
DESKTOP
chmod 644 "$_apps/org.kde.kdeconnect.app.desktop" \
	"$_apps/org.kde.kdeconnect.sms.desktop" \
	"$_apps/org.kde.kdeconnect.nonplasma.desktop"

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

Contents

Installed programs: kdeconnect-app, kdeconnect-cli, kdeconnect-handler, kdeconnect-indicator, kdeconnect-sms, kdeconnectd.

Installed libraries: libkdeconnectcore.so.

Installed directories: /usr/lib/qt6/plugins/kdeconnect, /usr/lib/qt6/qml/org/kde/kdeconnect, /usr/share/Thunar, /usr/share/contractor, /usr/share/deepin, /usr/share/kdeconnect, /usr/share/licenses/kdeconnect, /usr/share/nautilus-python, /usr/share/plasma/plasmoids/org.kde.kdeconnect.

Notes

build.sh renders upstream’s SVG logo, icons/app/sc-apps-kdeconnect.svg, to PNG icons at 48, 64, 128 and 256 pixels with rsvg-convert from librsvg, so the kdeconnect icon resolves in hicolor at those sizes whatever icon theme is chosen.

The three desktop entries are KDOS’s own, written over upstream’s. KAboutData names each window’s Wayland app id from the reversed organisation domain and the component name, and each entry’s StartupWMClass repeats it, so the task manager can match the window to its entry. The indicator’s entry carries upstream’s NotShowIn=KDE;: under Plasma the KDE Connect plasmoid is the tray icon, and the indicator would add a second one.

The virtual-monitor plugin, which lends the phone or tablet to this machine as an extra screen, runs krdpserver from krdp when it is asked to. The build does not check for it, so krdp is in depends to put the server on every machine that has KDE Connect.

The digitizer plugin, which turns a tablet’s pen into a drawing tablet here, installs 40-kdeconnect-uinput.rules, tagging /dev/uinput uaccess so the user of the active session may create the virtual pen device. It goes into the udevdir that udev.pc from eudev names, /lib/udev; without udev.pc the configure falls back to /usr/lib/udev, which is why eudev is in depends. The package carries the rule as lib/udev/rules.d/, which is /usr/lib/udev/rules.d on the merged-/usr root.