objective-see / OverSight

OverSight monitors a mac's mic and webcam, alerting the user when the internal mic is activated, or whenever a process accesses the webcam.
GNU General Public License v3.0
511 stars 39 forks source link

Execute is not working / Write an example of script execution #41

Closed ivazin closed 1 year ago

ivazin commented 1 year ago

I'm using version 2.1.5 but the execution is not working: tried python script, tried bash script with arguments and without it — no results. Please explain how to use it correctly?

objective-see commented 1 year ago

The logs should provide more information, as to what is going wrong.

From a terminal, can you first run: log stream --level debug --predicate="subsystem='com.objective-see.oversight'"

Then, set your the path to your script in the OverSight's preferences pane (tab: Action), and trigger a mic or cam event (e.g. open FaceTime, PhotoBooth, etc.).

You should then see something in the logs like such:

OverSight: [com.objective-see.oversight:application] executing user action
OverSight: [com.objective-see.oversight:application] execing task <path to your task> (arguments: (null))
OverSight: [com.objective-see.oversight:application] task completed with { }
ivazin commented 1 year ago

Thanks for all your help! It really helped to debug the script run ) Now it works! 🙏