diff --git a/src/backend/xdg_desktop_portal.rs b/src/backend/xdg_desktop_portal.rs index 4d6b358..51bb5de 100644 --- a/src/backend/xdg_desktop_portal.rs +++ b/src/backend/xdg_desktop_portal.rs @@ -28,7 +28,11 @@ impl From<&Filter> for FileFilter { fn from(filter: &Filter) -> Self { let mut ashpd_filter = FileFilter::new(&filter.name); for file_extension in &filter.extensions { - ashpd_filter = ashpd_filter.glob(&format!("*.{file_extension}")); + if file_extension == "*" || file_extension == "" { + ashpd_filter = ashpd_filter.glob("*"); + } else { + ashpd_filter = ashpd_filter.glob(&format!("*.{file_extension}")); + } } ashpd_filter }