Skip to main content

Module daemon

Module daemon 

Source

Enums§

DaemonStatus
Status of the background daemon task.

Functions§

apply_power_settings
Lift those power gates off the installed task, keeping its trigger time, logon type and binary as they are. No-op on the other platforms.
daemon_status
Check if the daemon is installed and its status.
get_exe_path
The binary path to register with the scheduler.
install_daemon
Install the OS-native daemon/scheduled task, firing every interval_days days.
refresh_windowless_twin
Replace the windowless scheduler binary after an upgrade, when one is in use.
registered_exe_path
The binary the installed scheduler entry will actually run, when that can be read.
uninstall_daemon
Uninstall the daemon/scheduled task.
wants_power_upgrade
Whether the installed scheduler entry still carries the power gates Windows puts on a bare schtasks /Create registration — refuse to start on battery, die on unplug, never catch up a missed trigger. Only Windows has them; launchd and systemd user timers run on battery without being asked.
wants_windowless_upgrade
Whether the installed scheduler entry should be re-registered to stop it flashing a console window at the logged-in user. Only Windows attaches a console to a scheduled task; the other platforms’ schedulers never open a terminal, so there the answer is always no.