Tuesday, April 1, 2008

Firefox "already running, but is not responding"

Users with network home directories started complaining about Firefox saying it was already in use. I put a fix in place with LHPG.
The fix was to remove files named with an IP and port (127.0.0.1:4324 or 10.1.1.1:3453 etc.) as well as a symlink called .parentlock pointed at the IP address files.
I then touch a file called temp and created a new .parentlock symlink pointed at the file called temp.
Here is the code:
#Fix firefox already running error.
eval HOMEPATH=~$USER
PROFILES=`ls -1 "$HOMEPATH"/Library/Application\ Support/Firefox/Profiles/`
for PROFILENAME in $PROFILES
do
rm -rf "$HOMEPATH"/Library/Application\ Support/Firefox/Profiles/"$PROFILENAME"/.parentlock
rm -rf "$HOMEPATH"/Library/Application\ Support/Firefox/Profiles/"$PROFILENAME"/*.*.*.*
done

No comments: