Comment 77 for bug 175904

I wrote up a script that I call on opening URL's instead of calling firefox directly. It checks to see if there's a firefox window on the current desktop. If there is one, it'll focus it, and open the URL in a new tab there. If there isn't one, it'll just open a new window right where you are.

Hopefully this'll be useful to somebody.

It requires wmctrl to be installed. (sudo apt-get install wmctrl)