PolyMeilex / rfd

Rusty File Dialog
MIT License
524 stars 60 forks source link

Implement `FileDialog.starting_directory` for xdg desktop portal backend #179

Closed theRookieCoder closed 4 months ago

theRookieCoder commented 4 months ago

Implements FileDialog.starting_directory for the xdg desktop portal backend using ashpd::OpenFileRequest::current_folder

Fixes #42

theRookieCoder commented 4 months ago

Unfortunately a bug (which I can't quite track down on KDE's implementation of portal) causes this functionality to not work on KDE, but it does work on GNOME. I haven't tested it on any other desktop environments yet.

theRookieCoder commented 4 months ago

The current_folder option is implemented (https://invent.kde.org/plasma/xdg-desktop-portal-kde/-/blob/master/src/filechooser.cpp#L371-373 and https://invent.kde.org/plasma/xdg-desktop-portal-kde/-/blob/master/src/kirigami-filepicker/api/mobilefiledialog.cpp#L137-140), it's just the file manager I'm using (Dolphin) that doesn't implement it probably.

PolyMeilex commented 4 months ago

Thanks!

Be-ing commented 4 months ago

Thanks for following up on my old TODO!