views:

116

answers:

2

I use this command from the Terminal to launch a url in Firefox:

firefox reader.google.com &

I put the ampersand at the end so that it won't put my Terminal window in the background, but Gnome just ignores this and opens a new Firefox browser window on top of the Terminal. Is there a way to launch Firefox behind the Terminal? What I want to do is continue working on the command line while the page loads, which sometimes can take a few seconds.

A: 
firefox "http://www.google.com/" &

This works for me just fine. Try using quotes and a full URL.

Mech Software
This works so long as tabs are off. Which I might do because the above method has side effects
dan
+1  A: 

In firefox's about:config page set preference:

'browser.tabs.loadDivertedInBackground' to 'true'.
McPherrinM
That did it. Thanks.
dan
But this unfortunately has some undesirable side effects... e.g. the page is opened in a background tab, which I would prefer to be selected.
dan
You can muck with your window manager's "Focus Stealing Prevention" to get something closer to what you want, perhaps.
McPherrinM