Skip to content

[Bug]: --ozone-platform-hint command line flag ignored #33810

Closed

Description

@baltitenger

Preflight Checklist

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.

Activity

  1. moved this to Unsorted Issues in 19-x-yon Apr 18, 2022
  2. self-assigned this
    on Apr 20, 2022
  3. moved this from Unsorted Issues to Doesn't Block Stable in 19-x-yon Apr 20, 2022
  4. bacteriostat commented on Apr 27, 2022

    @bacteriostat

    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.

  5. MarshallOfSound commented on Apr 27, 2022

    @MarshallOfSound
    Member

    As documented Electron doesn't automatically inherit all Chromium flags. That flag for instance is supported inside //chrome not //content which 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

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

Metadata

Metadata

Assignees

Type

No type

Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions