-
Notifications
You must be signed in to change notification settings - Fork 16.2k
fix: ensure version of xdg-dialog-portal
with defaultPath
support
#43570
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
Conversation
xdg-dialog-portal
with defaultPath
support
Cool thanks! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
Should this be upstreamed, seems like they would have the same issue ?
|
||
-constexpr int kXdgPortalRequiredVersion = 3; | ||
+// Version 4 includes support for current_folder option to the OpenFile method via | ||
+// https://github.com/flatpak/xdg-desktop-portal/commit/71165a5. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would be good to include the version bump commit flatpak/xdg-desktop-portal@4bf4d63 for clarity.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@deepak1556 I don't think they would hard block on it the way we do as they don't seem to use defaultPath in open dialogs. I can try though! I did manage to upstream this change: https://chromium-review.googlesource.com/c/chromium/src/+/5786982
Release Notes Persisted
|
I was unable to backport this PR to "30-x-y" cleanly; |
I was unable to backport this PR to "31-x-y" cleanly; |
I was unable to backport this PR to "32-x-y" cleanly; |
I have automatically backported this PR to "33-x-y", please check out #43595 |
@codebytere has manually backported this PR to "32-x-y", please check out #43629 |
@codebytere has manually backported this PR to "31-x-y", please check out #43630 |
@codebytere has manually backported this PR to "30-x-y", please check out #43631 |
Description of Change
Closes #43310.
The minimum version of
org.freedesktop.portal.FileChooser
containing support for setting a defaultPath viacurrent_folder
in flatpak/xdg-desktop-portal@71165a5 is 4. Chromium requires version 3 in order to use the interface, otherwise they fall back to GTK. Our dialog API requires thatdefaultPath
work both on open and save dialogs - we can ensure this by bumping the required minimum to 4 before falling back to GTK.The interface version bump commit is flatpak/xdg-desktop-portal@4bf4d63, which includes the
current_folder
commit.cc @bpasero
Checklist
npm test
passesRelease Notes
Notes: Fixed an issue where
defaultPath
did not work for all users on Linux when creating an open file dialog.