Skip to content

desktopCapturer.getSources() always returns a single screen combining all the screens in linux even there are multiple screens. #21321

Closed
@shafayet2368

Description

@shafayet2368

Electron Version: 6.0.0
Operating System: Ubuntu 18.04 x64

Expected Behavior

desktopCapturer.getSources()
should return an array of length equal to the number of screens/displays with all the information about each screen.

Actual Behavior

desktopCapturer.getSources()
always returns an array of length 1 combining all the screens/displays.

it returns a single screen with id: "screen:0:0"

To Reproduce

const electron = require('electron'); const desktopCapturer = electron.desktopCapturer; desktopCapturer.getSources({ types: ['screen']}, sources => { console.log(sources); });

@codebytere @nornagon can you please address the issue?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions