get frontmost app directly.  no need to sysctl
works, does not really use location services, although there's lots of vestigial code lying about