Skip to content
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

XDG desktop portal integrations for open and save file dialogs #141

Merged
merged 7 commits into from
Aug 16, 2023

Conversation

mmstick
Copy link
Member

@mmstick mmstick commented Aug 15, 2023

Adds dialog::file_chooser::open_file and dialog::file_chooser::save_file methods to construct dialogs that are then passed onto and managed by a dialog::file_chooser::subscription. Requires adding the xdg-portal feature to a project to enable the XDG portal dialog support via ashpd. There's a basic open_dialog example added here as well.

wash2
wash2 previously approved these changes Aug 15, 2023
Copy link
Contributor

@wash2 wash2 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm aside from some typos

src/dialog/file_chooser/mod.rs Outdated Show resolved Hide resolved
src/dialog/file_chooser/mod.rs Show resolved Hide resolved
src/dialog/file_chooser/mod.rs Outdated Show resolved Hide resolved
src/dialog/file_chooser/mod.rs Outdated Show resolved Hide resolved
src/dialog/file_chooser/open.rs Outdated Show resolved Hide resolved
src/dialog/file_chooser/save.rs Outdated Show resolved Hide resolved
@mmstick mmstick merged commit a8ce524 into master Aug 16, 2023
8 checks passed
@mmstick mmstick deleted the portals branch August 16, 2023 14:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants