Exported source
APP_NAME = "Snooper"App name for creating the root directory for storing log files and data base files
Log file name. The absolute path for logging will be generated based on the platform.
Log level for the application
How often, in seconds, the process monitor checks for processes starting or stopping. A lower value detects changes sooner but uses slightly more CPU.
Process names that should be ignored by process monitoring. This prevents the app from recording its own helper processes or other unimportant background processes.
File name for the SQLite database that stores sessions, foreground events, and process events. The absolute path for database will be generated based on the platform (windows/linux/macOS).
Number of days to retain recorded data. Startup housekeeping should delete records older than this limit.
How often, in seconds, the foreground tracker samples the active window/application. Lower values give more accurate switch timing but create more polling work.
Number of seconds without user input before normal foreground time is counted as idle rather than time spent in the active application.
Per-streaming-app idle thresholds. These allow an app such as YouTube, Netflix, or Twitch to remain counted as active longer before being treated as idle—for example while the user watches a video without interacting.
Maximum number of applications shown in the main “top apps” section of a session report.
Maximum number of window titles shown in the per-application title breakdown of a report.
Whether reports may display recorded window titles. Turning this off is useful for stronger privacy, while still retaining per-application foreground-time statistics.
Default length of a monitoring pause when the user chooses pause without providing a duration. After this period, monitoring should automatically resume in a new session.