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
fix: add support for ELECTRON_OZONE_PLATFORM_HINT environment variable #35614
Conversation
Can we instead set electron/shell/browser/electron_browser_main_parts_linux.cc Lines 56 to 110 in 730d918
--ozone-platform takes precedence over --ozone-platform-hint which still gives applications control over the default behavior of Electron for any edge cases they encounter. Seems like a default of --ozone-platform-hint=auto in Electron would cover all use cases mentioned in the linked issue.
|
I think I'd prefer #35630 over this PR and from #35614 (comment) it sounds like @deepak1556 would lean in the same direction |
Since #35630 looks premature until Chromium changes the default ozone platform value, could we please reopen this pull request? |
This feels way overdue considering chromium seems nowhere close to enabling their default ozone platform hint. |
Description of Change
Add support for the
ELECTRON_OZONE_PLATFORM_HINT
environment variable in order to make it easier for users to enable Wayland support for all Electron apps without having to manually patch application.desktop
files (or other similar workarounds #30897).The accepted values are the same as upstream, with the special
auto
value being recommended for most users (especially for those switching between X11 and Wayland environments).When both the
--ozone-platform-hint
command line flag and theELECTRON_OZONE_PLATFORM_HINT
environment variable are specified, the command line flag has higher priority.Fixes #30897
Checklist
npm test
passesRelease Notes
Notes: Added support for
ELECTRON_OZONE_PLATFORM_HINT
environment variable on Linux.