Expand description
Persisted user preferences (theme, etc.), shared by the TUI and GUI. Simple JSON-backed settings persistence, shared by the TUI and GUI.
Settings are stored at ~/.config/cleansys/settings.json (GUI) and
~/.config/cleansys/tui-settings.json (TUI) — or the platform-appropriate
config directory. Writes are atomic: content is first written to a
NamedTempFile in the same directory and then persist()-ed into place,
so a crash mid-write can never produce a corrupted file.
Structs§
- Settings
- Persisted user preferences.
Functions§
- load_
settings - Load GUI application settings (
settings.json). - load_
tui_ settings - Load TUI-specific settings (
tui-settings.json). - save_
settings - Persist GUI application settings.
- save_
tui_ settings - Persist TUI-specific settings.
- settings_
dir - Returns the settings directory (
~/.config/cleansys/or equivalent). - settings_
json_ path - Full path to the GUI JSON settings file.
- tui_
settings_ json_ path - Full path to the TUI-specific JSON settings file.