Skip to content

Configuration reference

Most changes are easiest in Preferences. Use this page for backups, scripting, and direct edits.

Data Native Flatpak
Settings ~/.config/clamui/settings.json ~/.var/app/io.github.linx_systems.ClamUI/config/clamui/settings.json
Profiles ~/.config/clamui/profiles.json ~/.var/app/io.github.linx_systems.ClamUI/config/clamui/profiles.json
Logs ~/.local/share/clamui/logs/ ~/.var/app/io.github.linx_systems.ClamUI/data/clamui/logs/
Quarantine ~/.local/share/clamui/quarantine.db, quarantine/ ~/.var/app/io.github.linx_systems.ClamUI/data/clamui/
Debug logs ~/.local/share/clamui/debug/ ~/.var/app/io.github.linx_systems.ClamUI/data/clamui/debug/

XDG_CONFIG_HOME and XDG_DATA_HOME move the native paths (inside the sandbox for Flatpak). Back up both directories:

Back up ClamUI (native)
tar -C "${XDG_CONFIG_HOME:-$HOME/.config}" -czf clamui-config-backup.tar.gz clamui
tar -C "${XDG_DATA_HOME:-$HOME/.local/share}" -czf clamui-data-backup.tar.gz clamui

ClamUI fills in missing defaults, keeps unknown keys, and writes updates atomically.

Inspect current values
jq '{scan_backend, language, schedule_frequency}' ~/.config/clamui/settings.json
Key Default Values
language "auto" auto or de, en, es, fr, hu, it, nb, pt_BR, vi, zh_CN. Unsupported locales fall back to English.
notifications_enabled true Desktop notifications
start_minimized false Start hidden when a tray is available and no scan target was passed
close_behavior null What happens when the window closes: minimize, quit, or ask
show_live_progress true Detailed scan progress
quarantine_directory "" Override for quarantined payloads
Key Default Values
scan_backend "auto" auto, clamd, clamscan. See scan backends.
daemon_socket_path "" Override for the clamd socket
clamd_conf_path "" Override for clamd.conf; empty means auto-detect
freshclam_conf_path "" Override for freshclam.conf; empty means auto-detect
update_inactivity_timeout_minutes 10 1 to 1440. A manual freshclam update stops after this long without output. Invalid values use 10.

The update timeout has no total time cap while output continues, and it does not apply to updates triggered by signaling a running freshclam service.

Key Default Values
scheduled_scans_enabled false Turn the schedule on
schedule_frequency "weekly" hourly, daily, weekly, monthly
schedule_time "02:00" 24-hour time; hourly runs at minute 0
schedule_targets [] Paths to scan
schedule_skip_on_battery true Skip on battery
schedule_auto_quarantine false Quarantine detections automatically
schedule_day_of_week 0 0 = Monday
schedule_day_of_month 1 1 to 28

exclusion_patterns starts with enabled directory entries for node_modules, .git, .venv, build, dist, and __pycache__. They apply to manual and scheduled scans. Keep exclusions narrow.

One exclusion entry
{ "pattern": "node_modules", "type": "directory", "enabled": true }
Key Default Values
device_auto_scan_enabled false Scan newly mounted devices
device_auto_scan_types ["removable", "external"] Add network or internal if wanted
device_auto_scan_notify true Notify about results
device_auto_scan_max_size_gb 32 Skip larger devices; 0 = no limit
device_auto_scan_delay_seconds 3 Wait after mounting
device_auto_scan_auto_quarantine false Quarantine detections automatically
device_auto_scan_skip_on_battery true Skip on battery
Key Default Values
virustotal_remember_no_key_action "none" none (always ask), open_website, prompt (notification only)
virustotal_api_key null Legacy field. Keys live in the system keyring and are never sent to the interface.
allow_plaintext_api_key_fallback false Allow less private storage when no keyring exists

Do not submit files or hashes you are not allowed to share.

Key Default Values
debug_log_level "WARNING" DEBUG, INFO, WARNING, ERROR
debug_log_max_size_mb 5 Rotate after this many MiB; invalid values use 5
debug_log_max_files 3 Numbered backups to keep; invalid values use 3
Internal keys you should not edit

clamd_size_limit_unit_migration_done and privileged_helper_prompt_skipped_version track one-time migrations and dismissed prompts.

An object with version and a profiles array. The older bare-array format still loads.

~/.config/clamui/profiles.json
{
"version": 1,
"profiles": [
{
"id": "6e8bb20e-4a0a-4be9-94a0-0d24c4f960f2",
"name": "Downloads",
"targets": ["~/Downloads"],
"exclusions": {"paths": [], "patterns": ["*.tmp"]},
"is_default": false,
"description": "New downloads",
"options": {},
"created_at": "2026-01-01T12:00:00+00:00",
"updated_at": "2026-01-01T12:00:00+00:00"
}
]
}

Built-in profiles (Quick Scan, Full Scan, Home Folder) get generated IDs. Imported profiles get a new ID and can never become defaults. Guide: scan profiles.

Preferences → Database, Scanner, On-Access edit the host freshclam.conf and clamd.conf, also from Flatpak. They need the privileged helper, which accepts only allowlisted options and asks once through polkit. Untrusted helpers are always blocked.

Section Options
Database DatabaseDirectory, UpdateLogFile, NotifyClamd, LogVerbose, LogSyslog, Checks, DatabaseMirror, DatabaseCustomURL (repeatable), HTTP proxy
Scanner ScanPE, ScanELF, ScanOLE2, ScanPDF, ScanHTML, ScanArchive, MaxFileSize, MaxScanSize, MaxRecursion, MaxFiles, LogFile, LogVerbose, LogSyslog
On-Access Include and exclude paths, prevention, extra scanning, threads, size, timeout, retries, excluded UIDs

Option meanings: clamd.conf and freshclam.conf. Keep archive limits finite and exclude the scanner account before enabling on-access monitoring.

  • A save is not atomic across config files, schedule, and timers: an earlier group can stay saved when a later one fails. Read the report before retrying.
  • Older clamd.conf size values with units are normalized in memory and repaired on the next successful save. Reading never writes host files or asks for elevation.
  • New custom config files are owner-only.

Helper problems: helper is not trusted. Failed save: recover a failed save.