Repository navigation
fix: restore the XDG portal version check for Linux file dialogs (45-x-y) - #54302
Merged
Merged
Conversation
) The Chromium 145 roll dropped the patch hunk that called StartPortalAvailabilityTestInBackground(), so the availability flag was never set: IsPortalAvailable() always returned false and logged a warning on every open dialog with a defaultPath, and --xdg-portal-required-version had no effect because Chromium hard-codes a minimum of 3. Remove Electron's private D-Bus probe and instead pass the switch value to SelectFileDialogLinuxPortal through a small setter in the existing dialog patch, and use dbus_xdg::RequestXdgDesktopPortal() for the defaultPath hint log. (cherry picked from commit 9bfd737)
3 tasks done
codebytere
approved these changes
Sep 24, 2026
|
Release Notes Persisted
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Backport of #54227
See that PR for details.
The
feat_add_support_for_missing_dialog_features_to_shell_dialogs.patchhunks were regenerated against this branch's Chromium; the two leftoverselect_file_dialog_linux_portal.ccincludes from the old Electron-side probe are dropped as on main.Notes: Fixed
--xdg-portal-required-versionhaving no effect and a spurious portal warning being logged for file dialogs on Linux.