You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug]: --ozone-platform-hint command line flag ignored #33810
I agree to follow the Code of Conduct that this project adheres to.
I have searched the issue tracker for a bug report that matches the one I want to file, without success.
Electron Version
18.0.3
What operating system are you using?
Other Linux
Operating System Version
Arch Linux
What arch are you using?
x64
Last Known Working Electron version
No response
Expected Behavior
Setting the --ozone-platform-hint flag to auto or wayland should make electron use wayland (assuming --enable-features=UseOzonePlatform is also set)
Actual Behavior
The flag is ignored.
Testcase Gist URL
No response
Additional Information
Using --ozone-platform=wayland does work, but then it fails when not running wayland.
Reacted by Valentin Hăloiu, Marek Rusinowski, Bacteria, Lukáš Kucharczyk, Joshua Chaitin-Pollak, Leonardo Razovic, Ari Pollak, Tim_Paik, GitThisBugOff, Anoesj Sadraee and 3 more
As documented Electron doesn't automatically inherit all Chromium flags. That flag for instance is supported inside //chromenot//content which means we don't support it by default.
Activity
bacteriostat commentedon Apr 27, 2022
Can reproduce this on Signal-desktop (electron 17.3.1), VSCode (electron 17.4.1).
Since this flag was added in chromium 97, Electron 17+ should support this flag.
MarshallOfSound commentedon Apr 27, 2022
As documented Electron doesn't automatically inherit all Chromium flags. That flag for instance is supported inside
//chromenot//contentwhich means we don't support it by default.https://source.chromium.org/chromium/chromium/src/+/main:chrome/browser/chrome_browser_main_extra_parts_linux.cc;l=123-135;drc=edab26bf11e993e5069d433e8c2186ad2dee012e;bpv=1;bpt=1
Someone would have to copy that code into the right place