pub fn config_dir() -> Result<PathBuf, AppError>
Returns the XDG config directory for the application.