Location Services is an important part of OS X, but it is not obvious on how to enable it without going through the System Preferences GUI. The preference that controls it is not in /Library/Preferences, and due to cfprefsd it is hard to find. Thanks to Tim Sutton for help in finding where this preference lives. It is a ByHost preference that exists in locationd’s container, at /var/db/locationd/Library/Preferences/ByHost/com.apple.locationd.$uuid. To enable it, use this script: https://gist.github.com/d17b0f8d61806083abaf To disable it, simply remove the plist and reload locationd.
Related Posts
- No Related Posts
3 Comments
Recent Forum Topics
Recent Comments
- ntmatter on Name Goes Here, code bass=”clash”
- thebrucecarter on Name Goes Here, code bass=”clash”
- fidelia779 on 802.1x EAP-TLS Machine Authentication in Mt. Lion with AD Certificates
- Leon Zhang on Augmenting DNS Records Using dnsmasq
- matthewrknoll on 802.1x EAP-TLS Machine Authentication in Mt. Lion with AD Certificates
I would love to see the script, but it appears to be missing from the article.
What is it about cfprefsd that makes it hard to find? I haven’t been paying close attention, so this isn’t obvious to me, but I assume it’s because it’s an agent that may cache your setting temporarily and write it to the file at a later time, as indicated here:
https://developer.apple.com/library/mac/releasenotes/CoreFoundation/CoreFoundation.html
Specifically: cfprefsd will cache information from [plist] files and asynchronously write to them. This means that directly modifying plist files is unlikely to have the expected results (new settings will not necessarily be read, and may even be overwritten).
Please, as you gain data, please update this blog with more information.
http://chexsystemsremovals.com