mm2270 / ScreenSharingMonitor

A process for end user notifications of screen sharing session starts and ends
33 stars 6 forks source link

Detecting screen sharing session #2

Open franton opened 8 years ago

franton commented 8 years ago

Hi mate, Long time no see!

I've been doing some related work to this on detecting if the screen sharing service is enabled. What I found was that on 10.11 machines there are no processes to be found. However when a screen sharing session is started, this process is spawned.

/System/Library/CoreServices/RemoteManagement/screensharingd.bundle/Contents/MacOS/screensharingd

It may make for an less computationally expensive way to detect sessions than running lsof commands every 12 seconds. Anyway, just a quick finding from me!