diff --git a/.changes/xdg-portal-default-gtk4.md b/.changes/xdg-portal-default-gtk4.md new file mode 100644 index 0000000000..9469414e24 --- /dev/null +++ b/.changes/xdg-portal-default-gtk4.md @@ -0,0 +1,6 @@ +--- +"dialog": minor +"dialog-js": minor +--- + +Make `xdg-portal` the default backend on Linux for GTK4 compatibility. diff --git a/plugins/dialog/Cargo.toml b/plugins/dialog/Cargo.toml index f2a67f1b29..7a82b882dc 100644 --- a/plugins/dialog/Cargo.toml +++ b/plugins/dialog/Cargo.toml @@ -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] @@ -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", ] }