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

354.22. plasma-browser-integration-6.8.2

Native-messaging host joining Firefox and Chromium to Plasma — media controls, tab search in KRunner, downloads and sharing

6.8.2-1 · MIT AND GPL-3.0-or-later AND GPL-2.0-or-later AND (GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL) AND GPL-3.0-only · 5.1 SBU · 1.2 MiB, 18 files · 50_desktop, 45 of 92 · ports/core/kde/plasma-browser-integration

Homepage: https://invent.kde.org/plasma/plasma-browser-integration

Why it is in KDOS. The comment above it in script/phases/50_desktop/packages.txt:

Joins Firefox and Chromium to Plasma: media controls, tab search and downloads.

Plasma Browser Integration is the native-messaging host behind the Plasma Integration browser extension. With the extension installed, a browser’s media playback appears in the media controls and answers the media keys, its downloads appear in the notifications, its open tabs and history are searchable in KRunner, its tabs are listed in the task manager’s context menu, and a page can be shared through purpose. The host is plasma-browser-integration-host; the browser starts it from the manifest this package installs.

Depends on: cmake, ninja, extra-cmake-modules, qt6-qtbase, kio, ki18n, kcoreaddons, kconfig, kcrash, kdbusaddons, knotifications, krunner, purpose, kfilemetadata, kjobwidgets, kservice, kstatusnotifieritem, plasma-activities, plasma-workspace.

Required by (1): kde-plasma.

Sources: plasma-browser-integration-6.8.2.tar.xz (243.6 KiB), plasma-browser-integration-extension-2.1.xpi. Every step kpkg takes applies to this port.

Install: script/chroot/exec.sh bash -c 'source script/phases/50_desktop/phase.env && kpkg install plasma-browser-integration'

build.sh:

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 INSTALL_CHROME_MANIFEST=OFF \
	-Wno-dev
cmake --build build
DESTDIR=$PKG cmake --install build
rm "$PKG/usr/lib/qt6/plugins/kf6/kded/browserintegrationflatpakintegrator.so"
for _b in firefox-esr librewolf; do
	install -Dm644 "$name-extension-$_xpi.xpi" \
		"$PKG/usr/lib/$_b/distribution/extensions/plasma-browser-integration@kde.org.xpi"
done

Programs: plasma-browser-integration-host.

Directories: /etc/chromium/native-messaging-hosts, /etc/opt, /usr/lib/firefox-esr/distribution/extensions, /usr/lib/librewolf/distribution/extensions, /usr/lib/librewolf/native-messaging-hosts, /usr/lib/waterfox, /usr/share/licenses/plasma-browser-integration.

The manifest is installed once per browser family, each a copy of the same file naming the host: /usr/lib/mozilla/native-messaging-hosts/ for firefox-esr, beside keepassxc’s; /usr/lib/librewolf/native-messaging-hosts/ for librewolf; and /etc/chromium/native-messaging-hosts/ for chromium, plus the Chrome, Edge and Waterfox locations upstream always writes. None of them does anything until the browser has the extension, so the package carries it: AMO’s signed build of the Plasma Integration extension, a second source, installed as distribution/extensions/plasma-browser-integration@kde.org.xpi for firefox-esr and librewolf, which install it into every new profile at its first start as an ordinary add-on the person can disable or remove. It is the signed 2.1, not the 2.2 in the tarball’s extension/ directory, because Firefox installs no unsigned extension and xpinstall.signatures.required stays on; nothing reaches the store at run time.

The task manager’s tab list goes through LibTaskManager from plasma-workspace, and the KRunner tab and history search through the two D-Bus runners installed under /usr/share/krunner/dbusplugins. The kded module it keeps is a reminder that offers the extension once a supported browser is used. build.sh deletes the second, browserintegrationflatpakintegrator.so, which writes a host wrapper under ~/.var/app/<id> for eight Flatpak browsers at every login whether or not any of them is installed; KDOS has no Flatpak, so it would only leave eight empty application trees in every home. The build has no switch for it.