Skip to content

Support useSystemPicker on Linux (Wayland/Pipewire) #48223

@byquanton

Description

@byquanton

Preflight Checklist

Problem Description

On Linux with Pipewire, session.setDisplayMediaRequestHandler({ useSystemPicker: true }) does not use the system screen-picker.

With Pipewire it doesn't make sense to use a custom handler, because it always returns only one source and breaks many different electron based apps that provide custom pickers (e. g: element)

Proposed Solution

The behavior that is implemented for macOS with useSystemPicker: true should also work under Linux with Wayland.

Alternatives Considered

Custom code in Electron apps, that detects Wayland and then always picks the first source automatically.

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions