-
-
Notifications
You must be signed in to change notification settings - Fork 5.1k
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
Desktop: Upgrade to Electron 32.2.0 #11200
Desktop: Upgrade to Electron 32.2.0 #11200
Conversation
There's an unfortunate regression upstream with the file picker portals, which benefit the Snap and Flatpak releases primarily for sandbox mediation; but are also the mechanism of how Electron uses e.g., the KDE filepicker for users who dislike the GTK filepicker. There's no workaround and ultimately the underlying framework can't be held back for relatively minor things, but I thought I'd raise this as it's a sneaky breaking change. Ideally, Electron would support the existing API and the newer one, as no distribution even has the V4 API with it being in beta, and stable releases will never backport it, meaning this basically just breaks for every existing user. |
So should we wait before merging this? |
I'd personally say no, the regressions are unfortunate but I'd imagine that either upstream will revert down the line when feedback happens, or they'll stick to it and then there's no point in holding back given the underlying Chromium/Node stuff needs to be kept up to date to avoid worse problems down the line. It just means from a support POV, there might be questions relating to file pickers that seem out of the blue. For example, people are happy to see that in Gnome 47, the file picker has full thumbnail support. Electron 29 would be able to use this, but Electron 32 will instead go back to GTK3's internal file picker and lose it, until users upgrade to newer distributions (which staggers years at a time). Ultimately I hope they just revert it. |
The linked issue suggests that Electron will revert the file picker change in a future patch release. |
Electron 34 has reverted the change above but this hasn't yet been backported to Electron 32 (which it hopefully will be). Would there be an apetite to upgrade to Electron 34 this release cycle? As is, whilst I don't think this would be a killer to e.g., the Snap, there'll likely be situations with Snap and Flatpak where permission management starts being more an obvious problem; and even in the native releases, the other issues with lack of integration with the native host filepickers will probably effect a fairly large amount of people. On the plus side, newer API's and fixes might help too (of course, I'm aware it's not always so easy!) |
Thank you for tracking this issue!
Electron 34 is currently in beta and will become stable on January 14th. This is after the Joplin 3.2 feature freeze and publishing date. Electron's backport tool seems to have failed to backport the change to v33 and v32, however Electron has documentation for manually backporting changes through pull requests. Based on this, unless the fix is manually backported (or Joplin 3.2 uses a beta Electron version), I don't expect the fix to be included in the Joplin 3.2 release. |
Eek, apologies; I thought it was stable (or close to), not after the expected release. I'll keep an eye on the backports and let you both know if there's a patch release for the same. |
Summary
This pull request upgrades to Electron 32.2.0.
Potentially related: #11199.
Relevant breaking changes
permissions-policy
for the note viewer iframe needed to be updated. See cross-origin iframes now use Permissions Policy to access featuresSee also https://www.electronjs.org/docs/latest/breaking-changes.
UI Changes
The Chromium-provided UI for menus has changed on Linux and Windows:
Manual testing
Linux (Fedora 40):
Windows 11: