Skip to content
Open
6 changes: 6 additions & 0 deletions .changes/xdg-portal-default-gtk4.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"dialog": minor
"dialog-js": minor
---

Make `xdg-portal` the default backend on Linux for GTK4 compatibility.
6 changes: 3 additions & 3 deletions plugins/dialog/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ repository = { workspace = true }
links = "tauri-plugin-dialog"

[features]
default = ["gtk3"]
xdg-portal = ["rfd/xdg-portal", "rfd/tokio", "rfd/wayland"]
default = ["xdg-portal"]
xdg-portal = ["rfd/xdg-portal", "rfd/wayland"]
gtk3 = ["rfd/gtk3"]

[package.metadata.docs.rs]
Expand Down Expand Up @@ -43,7 +43,7 @@ tauri-plugin-fs = { path = "../fs", version = "2.4.5" }
tauri = { workspace = true, features = ["wry"] }

[target."cfg(any(target_os = \"macos\", windows, target_os = \"linux\", target_os = \"dragonfly\", target_os = \"freebsd\", target_os = \"openbsd\", target_os = \"netbsd\"))".dependencies]
rfd = { version = "0.16", default-features = false, features = [
rfd = { version = "0.17", default-features = false, features = [
"common-controls-v6",
] }

Expand Down
Loading