opensnoop is a command-line tool that comes preinstalled with Mac OS X allowing you to see what’s being modified in your filesystem. If you Google some tutorials on it, you’ll see that you can track a particular process name like Safari with code like
The only fix I could find for it was in Italian. Here’s the original page, and then here’s the Google Translate (to English) version of that page.
It involves editing the actual binary file, so make sure you back it up first. If you edit it using nano, you can use the -B parameter to make an automatic backup first:
inline string NAME = “‘$pname'”;
inline string NAME = “‘”$pname”‘”;