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

316.10. kcron-26.08.2

Task Scheduler — a System Settings page for user and system crontabs

26.08.2-1 · GPL-2.0-or-later · 0.5 SBU · 570.9 KiB, 15 files · 44_apps, 268 of 422 · ports/core/kde/kcron

Homepage: https://apps.kde.org/kcron/

KCron is the Task Scheduler page of System Settings: it lists, adds, edits and removes the jobs and environment variables of the user’s crontab, and, with an administrator’s password, those of the system /etc/crontab. It is a KCM, a plugin that System Settings or kcmshell6 kcm_cron opens, with no window of its own. On KDOS it edits what cronie runs: cron serves the jobs people write, and snooze keeps running the timers the system ships in /etc/kdos/timers.d.

Depends on: cmake, ninja, extra-cmake-modules, qt6-qtbase, qt6-qtdeclarative, kconfigwidgets, kcoreaddons, kauth, ki18n, kcmutils, kirigami, kirigami-addons, kdoctools, polkit, cronie, konsole.

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

Sources: kcron-26.08.2.tar.xz (883.6 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 kcron'

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 CMAKE_REQUIRE_FIND_PACKAGE_KF6DocTools=ON \
	-Wno-dev
cmake --build build
DESTDIR=$PKG cmake --install build

Directories: /usr/share/doc/HTML/en/kcontrol/kcron, /usr/share/licenses/kcron.

The user’s table is read with crontab -l and written by piping the new table to crontab, so the crontab program from cronie is what the page needs at run time; without it the page opens empty and every save fails. The system table is read from /etc/crontab directly, and is shown only when that file exists.

Saving the system table goes through a KAuth helper, kcron_helper, which runs as root and is reached through polkit as the action local.kcron.crontab.save, auth_admin with the answer kept for the session. The port installs the helper with its D-Bus system service, its bus policy and its polkit action; the authentication dialog comes from the session’s polkit agent.

“Run now” starts the job’s command in konsole, by name, so Konsole is in depends for run time.

Upstream’s CMakeLists.txt adds its autotests directory whatever BUILD_TESTING says, so the build compiles one test program, taskvalidatortest, and installs nothing from it.