Description: Patch for rust-xdg 2 compat Author: Simon Quigley Origin: vendor Forwarded: not-needed Last-Update: 2026-06-20 --- This patch header follows DEP-3: http://dep.debian.net/deps/dep3/ --- a/src/main.rs +++ b/src/main.rs @@ -478,9 +478,11 @@ fn main() -> Result<(), Box> #[cfg(all(not(windows), not(target_arch = "wasm32")))] fn get_default_config_path() -> String { let xdg_dirs = xdg::BaseDirectories::with_prefix("comrak"); - if let Ok(path) = xdg_dirs.place_config_file("config") { - if let Some(path_str) = path.to_str() { - return path_str.into(); + if let Ok(xdg_dirs) = xdg::BaseDirectories::new() { + if let Ok(path) = xdg_dirs.place_config_file("config") { + if let Some(path_str) = path.to_str() { + return path_str.into(); + } } }