![在系统日志中收到“HOME 环境变量已被我们更改!”](https://linux22.com/image/1305500/%E5%9C%A8%E7%B3%BB%E7%BB%9F%E6%97%A5%E5%BF%97%E4%B8%AD%E6%94%B6%E5%88%B0%E2%80%9CHOME%20%E7%8E%AF%E5%A2%83%E5%8F%98%E9%87%8F%E5%B7%B2%E8%A2%AB%E6%88%91%E4%BB%AC%E6%9B%B4%E6%94%B9%EF%BC%81%E2%80%9D.png)
在 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.
知道如何检查是什么改变了这个变量吗?系统非常稳定,但我想避免将来出现问题。