> One does not simply get the camera status on a MacBook.
What you need is a sensor right near the green dot that detects whether it's turned on or not. Could use a full-blown camera, but probably a simpler sensor would work too.
Only half-kidding.
> One does not simply get the camera status on a MacBook.
What you need is a sensor right near the green dot that detects whether it's turned on or not. Could use a full-blown camera, but probably a simpler sensor would work too.
Only half-kidding.
> One does not simply get the camera status on a MacBook.
? OverSight [1] seems to work just fine. It pops up whenever something uses the mic or camera (the usage for this tool is to "monitor" for unwanted access from rogue apps). Since it's open source it should be possible to check how they get the status?
- https://github.com/objective-see/OverSight
That's what I use. Oversight runs scripts on events, which is great. However! now you have the problem of rapid events with overlapping scripts ending up with inconsistent state. I solved that with a lock file, but still get stuck states sometimes.
Skimming the code, I think it also monitors log events.