MacOS idle time in gtkidle.c
chris at growl.info
Thu Jun 28 12:50:19 EDT 2007
There is idle detection time in both Adium and Growl source. Please
email me directly if you can't find it.
Stephen More wrote:
>I created a dynamic library on Mac OS X ( 10.3.9 ) that displays the idle time.
>It is a subset of gtkidle.c
># ifdef HAVE_IOKIT
>I will ssh into the Mac and execute this code, and it seems to respond
>back with a cached version of idle time. I execute it over and over
>again the the idle time does not change.
>The command "ioreg -c IOHIDSystem" seems to refresh the cache.
>I am not a Mac API expert...is there and API that can be called
>instead of adding this hack ?
>system( "ioreg -c IOHIDSystem > /dev/null" );
More information about the Devel