Skip to content

[Feature Request]: environment variable to enable wayland support and get rid of individual --enable-features=UseOzonePlatform --ozone-platform=wayland flags #30897

@pshirshov

Description

@pshirshov

Preflight Checklist

Problem Description

Currently Wayland support in Electron needs to be turned on on per-app basis with --enable-features=UseOzonePlatform --ozone-platform=wayland flags.

This is very inconvenient: we have to repeat this chore for every single Electron app, we need to take care of CLI aliases, etc, etc.

Without these flags Electron apps look blurry and are almost unusable when fractional scaling is on.

Proposed Solution

Electron should read these options from an environment variable, like ELECTRON_OPTS, this way the user would be able to turn on Wayland support globally.

Alternatives Considered

Alternatively Electron may support environment variables like

ELECTRON_OZONE_PLATFORM
ELECTRON_ENABLE_FEATURES

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions