Skip to content

fix: restore the XDG portal version check for Linux file dialogs (45-x-y) - #54302

Merged
MarshallOfSound merged 1 commit into
45-x-yfrom
bp/45-x-y/linux-portal-version-check
Sep 24, 2026
Merged

MarshallOfSound merged 1 commit into
45-x-yfrom
bp/45-x-y/linux-portal-version-check

Conversation

@MarshallOfSound

Copy link
Copy Markdown
Member

Backport of #54227

See that PR for details.

The feat_add_support_for_missing_dialog_features_to_shell_dialogs.patch hunks were regenerated against this branch's Chromium; the two leftover select_file_dialog_linux_portal.cc includes from the old Electron-side probe are dropped as on main.

Notes: Fixed --xdg-portal-required-version having no effect and a spurious portal warning being logged for file dialogs on Linux.

)

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)
@MarshallOfSound
MarshallOfSound requested a review from a team as a code owner September 24, 2026 17:54
@MarshallOfSound MarshallOfSound added backport This is a backport PR semver/patch backwards-compatible bug fixes 45-x-y labels Sep 24, 2026
@MarshallOfSound MarshallOfSound self-assigned this Sep 24, 2026
@MarshallOfSound
MarshallOfSound enabled auto-merge (squash) September 24, 2026 18:26
@MarshallOfSound
MarshallOfSound merged commit 9eb2cab into 45-x-y Sep 24, 2026
90 checks passed
@MarshallOfSound
MarshallOfSound deleted the bp/45-x-y/linux-portal-version-check branch September 24, 2026 19:15
@release-clerk

release-clerk Bot commented Sep 24, 2026

Copy link
Copy Markdown

Release Notes Persisted

Fixed --xdg-portal-required-version having no effect and a spurious portal warning being logged for file dialogs on Linux.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

45-x-y backport This is a backport PR semver/patch backwards-compatible bug fixes

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

2 participants