fn get_xdg_config_dir() -> Result<PathBuf, String>