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

354.15. polkit-kde-agent-1-6.8.2

KDE polkit authentication agent — the password dialog for actions an administrator must approve

6.8.2-1 · GPL-2.0-or-later AND CC0-1.0 AND LGPL-2.0-or-later · 0.3 SBU · 198.3 KiB, 6 files · 50_desktop, 38 of 92 · ports/core/kde/polkit-kde-agent-1

Homepage: https://invent.kde.org/plasma/polkit-kde-agent-1

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

The polkit agent: the password dialog for actions an administrator must approve.

The polkit KDE agent is the Plasma session’s polkit authentication agent: when a program asks polkit for an action whose policy is auth_admin or auth_self, polkit asks the agent registered for the caller’s session, and this agent shows the password dialog and answers. It registers for the session it is started in, so it serves every program in that login session; without an agent such a request is refused.

Depends on: cmake, ninja, extra-cmake-modules, qt6-qtbase, qt6-qtdeclarative, kcoreaddons, kcrash, kdbusaddons, ki18n, kirigami, knotifications, kwindowsystem, polkit-qt6, polkit.

Required by (1): kde-plasma.

Sources: polkit-kde-agent-1-6.8.2.tar.xz (57.1 KiB). Every step kpkg takes applies to this port.

Install: script/chroot/exec.sh bash -c 'source script/phases/50_desktop/phase.env && kpkg install polkit-kde-agent-1'

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 \
	-Wno-dev
cmake --build build
DESTDIR=$PKG cmake --install build
rm -rf "$PKG/usr/lib/systemd"

Directories: /usr/share/licenses/polkit-kde-agent-1.

The agent registers for UnixSessionSubject(getpid()), so polkit must be able to map its process to a login session. That needs polkit built with session tracking and a running elogind; when the lookup fails, the registration fails and the agent exits with status 1, and every later auth_admin request in the session is refused with no dialog.

plasma_session starts the agent from the XDG autostart entry /etc/xdg/autostart/polkit-kde-authentication-agent-1.desktop, phase 0. The install also puts a systemd user unit under /usr/lib/systemd, which the package lint refuses (see What the package lint refuses); build.sh removes the directory. The autostart entry carries X-systemd-skip=true, which tells a systemd session to use the unit instead; a session started without systemd ignores the key and runs the entry.

polkit is in depends for run time: the agent talks to its daemon over the system bus, and its polkit-agent-helper-1 checks the password.