Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

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

Closed
shafayet2368 opened this issue Nov 28, 2019 · 2 comments

Comments

@shafayet2368
Copy link

shafayet2368 commented Nov 28, 2019

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?

@loc
Copy link
Contributor

loc commented Dec 3, 2019

There is an active upstream bug that addresses this issue: https://bugs.chromium.org/p/chromium/issues/detail?id=396091

It looks like it hasn't landed yet, but whenever it does, it'll start working in the subsequent major Electron release.

@loc loc closed this as completed Dec 3, 2019
@xudeming208
Copy link

There is an active upstream bug that addresses this issue: https://bugs.chromium.org/p/chromium/issues/detail?id=396091

It looks like it hasn't landed yet, but whenever it does, it'll start working in the subsequent major Electron release.

Has the latest version of this problem been solved?

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants