[MacOS] Request/query permissions to take screenshot?
-
Hi everyone,
by default, when I use
QtGui.QScreen.grabWindow(my_screen, 0)
on MacOS, I receive an image of the empty desktop.
I learned, that I have to grant my application "Screen Recording" permissions in the system settings, then I receive the "real" screenshot correctly.But for my users, this is quite a pitfall, so I'm looking for a user friendly solution.
- Is there any way I could trigger a "request for permission" from my application? I noticed, other applications do this. (Shouldn't this behavior be the default for Qt?)
- If this is not possible, can I somehow query, if my applications is missing those permissions? Then I could at least open a pop-up with instructions...
Thanks and best regards!
-
@dynobo said in [MacOS] Request/query permissions to take screenshot?:
"Screen Recording" permissions
https://apple.stackexchange.com/questions/384230/how-do-i-reset-screen-recording-permission-on-macos-catalina
if the command works, you can run it in a qt process.