pub fn save_config(config: &AppConfig) -> Result<(), AppError>
Persist application configuration to the XDG config file.