Is there a way to make a MacOS Python application (using Pillow and ImageGrab) request the Screen Recording Permission like other C++ applications can? See https://developer.apple.com/documentation/avfoundation/cameras_and_media_capture/requesting_authorization_for_media_capture_on_macos
The permissions change in Catalina and later prevents screen capture from working in Python applications. Maybe Pillow or Python itself needs some MacOS specific code to "request" the permission needed when not already there? Can this already be done from a Python application? I know Pillow has been updated to handle MacOS; thus not needing pyscreenshot anymore to reach all platforms. But neither application will request the needed permission if not available in MacOS. Instead, you simply get the desktop background image if the permission does not already exist. It is typical for other applications to give a pop-up requesting the permission when needed. Why not in Python also?