在 Mac OS X Lion 中,我看到 system.log 文件中有许多行表明 HOME 环境变量已更改。
19/02/2012 23:47:16.204 com.apple.launchd.peruser.501: (com.apple.PreferenceSyncAgent[19914]) The HOME environmental variable changed out from under us!
19/02/2012 23:47:16.205 com.apple.launchd.peruser.501: (com.apple.PreferenceSyncAgent[19914]) In a future build of the OS, this error will be fatal.
另一个例子:
19/02/2012 23:47:19.494 com.apple.launchd.peruser.501: (com.apple.locationmenu[19917]) The HOME environmental variable changed out from under us!
19/02/2012 23:47:19.494 com.apple.launchd.peruser.501: (com.apple.locationmenu[19917]) In a future build of the OS, this error will be fatal.
知道如何检查是什么改变了这个变量吗?系统非常稳定,但我想避免将来出现问题。