On 23/09/11 16:24, Mark Rogers wrote:
Well it appears that the key is ~/.mozilla/firefox/<profile>/sessionstore.js
- if I kill Firefox, then delete this, then start Firefox, it starts
"clean". So something like: #!/bin/bash killall -r firefox* find ~/.mozilla/firefox -name sessionstore.js -delete firefox --display=:0.0 &
A couple of notes to add to this: - On my actual server, display is :0 not :0.0 - is there any difference? - The GUI user in my case isn't the same as the user I SSH in with, so to run this I needed: sudo -Hu user ./ffrestart.sh .. where "user" was the user running Firefox; -H is needed so that ~ expands correctly to the user's home directory in the script.