From b1e7836dfcc6cb2ee4102bda8594d3065e7c6794 Mon Sep 17 00:00:00 2001 From: Dallas Strouse <93224879+orowith2os@users.noreply.github.com> Date: Fri, 4 Aug 2023 15:03:33 -0500 Subject: [PATCH 1/3] Use portals by default It can be safely assumed that a system has portals by default; if they don't, many things will simply fail to work, including, but not limited to, the dark mode preference and many other freedesktop settings. Those that absolutely refuse to use D-Bus will thus end up with an unusable system in the first place, if they want to use anything desktop-related. So enabling the portal backend by default is fine. GTK will, of course, fall back to using the portals if it's running inside of a Flatpak environment, but it requires manual workarounds outside of one. And, of course, having a library depend on GTK when it's more or less unnecessary isn't ideal. --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index b24c3d8..7d50cca 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -11,7 +11,7 @@ repository = "https://github.com/PolyMeilex/rfd" documentation = "https://docs.rs/rfd" [features] -default = ["gtk3"] +default = ["xdg-portal"] file-handle-inner = [] gtk3 = ["gtk-sys", "glib-sys", "gobject-sys"] xdg-portal = ["ashpd", "urlencoding", "pollster"] From 0fdcc95d3fcc4a7491b14e0bcf4ff3b4ff7b9e0c Mon Sep 17 00:00:00 2001 From: PolyMeilex Date: Mon, 19 Feb 2024 19:55:07 +0100 Subject: [PATCH 2/3] Add default async-std feature --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 7d50cca..866e193 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -11,7 +11,7 @@ repository = "https://github.com/PolyMeilex/rfd" documentation = "https://docs.rs/rfd" [features] -default = ["xdg-portal"] +default = ["xdg-portal", "async-std"] file-handle-inner = [] gtk3 = ["gtk-sys", "glib-sys", "gobject-sys"] xdg-portal = ["ashpd", "urlencoding", "pollster"] From 32ca6816ae0593751099dfb940f05fdff1bd2232 Mon Sep 17 00:00:00 2001 From: PolyMeilex Date: Mon, 19 Feb 2024 19:55:54 +0100 Subject: [PATCH 3/3] Update CHANGELOG --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 78c7ce2..5150c53 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,7 @@ # Change Log ## [Unreleased] +- Use XDG Portal as default - Use zenity as a fallback for xdgp - Update `raw-window-handle` to 0.6. - Update `winit` in example to 0.29.