-
Notifications
You must be signed in to change notification settings - Fork 67
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] Dialog not showing up with xdg-desktop-portal > 1.16
#157
Comments
For references, here are my main.rs and Cargo.toml. I also add that everything works well when using the default feature flags with the gtk backend. use rfd::FileDialog;
fn main() {
println!("Hello, world!");
let files = FileDialog::new()
.set_directory("/")
.pick_file();
println!("files: {:?}", files);
} [package]
name = "test"
version = "0.1.0"
edition = "2021"
[dependencies]
rfd = { version = "0.12.1", default-features = false, features = [
"xdg-portal",
] } |
I'm having similar issues. The main difference in my setup is I'm using |
I have encountered this problem in tauri with |
running |
Works fine here.
hyperland portal does not provide a file picker, or anything beyond screen sharing. You have to have a portal that does next to hyperland portal. (You can, and should run both)
@LIMPIX31 (PS. just don't mistake freedesktop's gtk portal for gnome portal, as the former one will most likely not work for you on hyperland) EDIT: Yep. hyperland wiki says the same thing: https://wiki.hyprland.org/Useful-Utilities/Hyprland-desktop-portal/#installing |
Hello, I come from Tauri v2 alpha here, and open a Dialog freeze the application. I'm using archlinux with wayland and hyprland, seems to be related to this. |
The same. I have tried different versions of rfd and xdg-desktop-portal but no result. |
That's unrelated, Tauri does not use xdp backend |
For me a workaround is to pin the rfd version to 0.12.0: Change this to a newer version (e.g. 0.12.1) causes this issue again. |
How about master? We updated ashpd perhaps that helps somehow |
With master: |
How about now? Either master or new 0.14 |
Great, for me the issue is solved with version 0.14.0. ============== Some more information from my testing in the last days: The following minimal code was also working with the problematic versions 0.12.1 and 0.13.0:
But adding slint to the party with the following code, the problem was reproducible:
|
Hi,
I am running Arch Linux, with the 6.1 LTS kernel.
I have the
xdg-desktop-portal (1.18.0)
installed with thexdg-desktop-portal-gtk (1.15.1)
backend.When compiling rfd with the
xdg-portal
feature, the dialog won't show up.I was able to make it work by downgrading
xdg-desktop-portal
to version 1.16, though, so this might be some breaking API changes.Kind regards,
The text was updated successfully, but these errors were encountered: