CapSoftware / scap

High-performance, cross-platform screen capture library in Rust.
https://crates.io/crates/scap
Other
231 stars 44 forks source link

feat (mac): separate has_permission() and request_permission() #52

Closed clearlysid closed 7 months ago

clearlysid commented 7 months ago

Currently the macOS has_permission() method will actually stop code execution and prompt the user for granting permissions (which they could choose to decline also) — this led to problems in Helmer Micro where people were unable to grant it permissions even after multiple attempts.

This PR introduces a separate has_permission() and request_permission() method to try and tackle this.