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
-include sys/types.h— Added toCXXFLAGS.src/survey/entries.husesuid_tand includes nothing that declares it on musl, whose C++ and Qt headers do not bring in<sys/types.h>as glibc’s do, soentries.cppstops on'uid_t' does not name a type.-D KF_SKIP_PO_PROCESSING=ON— Builds none of the interface translations inpo/, which kpkg’s English-only rule would remove from the package anyway (see Size and language policy).-Wno-dev— Silences CMake’s warnings meant for the project’s own developers.
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.