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

316.5. kde-inotify-survey-26.08.2

Warns when the inotify watch and instance limits run out, and raises them on request

26.08.2-1 · (GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL) AND BSD-3-Clause AND FSFAP AND CC0-1.0 · 1.0 SBU · 302.6 KiB, 14 files · 44_apps, 263 of 422 · ports/core/kde/kde-inotify-survey

Homepage: https://invent.kde.org/system/kde-inotify-survey

kde-inotify-survey watches the kernel’s inotify limits. A kded module notices when the per-user watch or instance limit is close to exhausted, which leaves file managers, Baloo and editors blind to changes, and raises a notification that offers to increase it. The kde-inotify-survey command prints which processes hold the watches.

Depends on: cmake, ninja, extra-cmake-modules, qt6-qtbase, kauth, kcoreaddons, kdbusaddons, kded, ki18n, knotifications, polkit, procps-ng.

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

Sources: kde-inotify-survey-26.08.2.tar.xz (236.1 KiB). Every step kpkg takes applies to this port.

Install: script/chroot/exec.sh bash -c 'source script/phases/44_apps/phase.env && kpkg install kde-inotify-survey'

build.sh:

export CXXFLAGS="$CXXFLAGS -include sys/types.h"

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

Programs: kde-inotify-survey.

Directories: /usr/share/licenses/kde-inotify-survey.

Raising a limit goes through a KAuth helper, kded-inotify-helper, which kauth starts as root over the system bus after polkit allows the action (auth_admin for an active session). The helper writes /etc/sysctl.d/50-kde-inotify-survey-max_user_watches.conf or …-max_user_instances.conf and runs /usr/sbin/sysctl --system, the --system form that procps-ng’s sysctl understands. The raised value survives a restart because the boot script /etc/init.d/10_sysctl.sh runs the same sysctl --system, which reads /etc/sysctl.d before /etc/sysctl.conf; a boot that applied /etc/sysctl.conf alone would lose it.

The module runs inside kded6 from kded, which the Plasma session starts, so nothing is watched outside a session.