PolyMeilex / rfd

Rusty File Dialog
MIT License
574 stars 64 forks source link

Linux with XDG Desktop Portal: set_directory() only works with save dialog #213

Open sourcebox opened 1 month ago

sourcebox commented 1 month ago

set_directory() only works with save dialogs, not with open dialog. I'm not sure if this is really a bug in rfd but in XDG portal itself. According the docs setting the starting path should be supported in general, the rustdoc comments still show it as "GTK-only" though.

bilelmoussaoui commented 4 days ago

That is not true https://bilelmoussaoui.github.io/ashpd/ashpd/desktop/file_chooser/struct.OpenFileRequest.html#method.current_folder, the option is either not used by rfd or you have an old portal installed that doesn't support it.