-
-
Notifications
You must be signed in to change notification settings - Fork 92
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Empty desktop on MacOS through ElectronJS #156
Comments
That's odd, I wonder if it's some sort of security restiction. Under the hood we use the
|
@bencevans I know what the problem is now, you have to enable "Screen Recording" for the app (your ide, your console, or wherever you run the screencapture from). To fix it: System Preferences -> Securtity & Privacy -> Privacy (tab) -> Screen Recording -> and select the app(s) to allow it. |
Thanks for sharing! |
@sankyn1 Might need to allow screen recording for a different process. Depending on how you're running it. E.g. If you're running your app from an IDE you may need to allow the IDE the screen recording permission. |
Describe the bug
Calling this library from Electron ends up taking screenshots of the empty desktop: it pictures the wallpaper and the top bar, but none of the opened windows show up.
To Reproduce
Expected behavior
Supposedly it should take a picture of the actual screen (with all the windows opened and so).
Environment (please complete the following information):
The text was updated successfully, but these errors were encountered: