CapSoftware / scap

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

os-version check optimised #13

Closed anubhavitis closed 1 year ago

clearlysid commented 1 year ago

Although I'm hoping that in the future we can find a way to get the macOS version number without spawning a process/command. Or maybe there's a different, more efficient way of validating the support for ScreenCaptureKit that we're missing.

anubhavitis commented 1 year ago

You might be right, there should be a better way to run sh commands, or perhaps getting the os info. But just to understand your pov, what's the issue with spawning a process/command? I mean, this will be a one time thing on the application side. This would be a part of user-boarding flow, which typically occurs once only.

clearlysid commented 1 year ago

what's the issue with spawning a process/command? I mean, this will be a one time thing on the application side.

True. That's why I mentioned the "in the future..." part. As and when we get time or ideas.