![](https://seccdn.libravatar.org/avatar/b12cfb65ca4faebc3e3aac17838e8f8d.jpg?s=120&d=mm&r=g)
Joachim, On Tuesday 13 December 2005 03:14, Joachim Schrod wrote:
Randall R Schulz wrote:
I have a few little helper scripts through which I route all Firefox access from other applications. One opens a new window, another a new tab and the last reuses the currently displayed tab (in the most recently displayed window, I think).
-==-firewin-==--==-firewin-==--==-firewin-==--==-firewin-==- #!/bin/bash --norc
firefox -remote "openURL($1, new-window)" >~/.xsession-errors 2>&1
Just some small comment: You may want to append to that file, not overwrite it with every invocation.
Yes. I modified my actual scripts for the purpose of the email, and that was erroneously introduced. Clearly it must be an appending redirection (in all three cases): firefox -remote "openURL($1, new-window)" >>~/.xsession-errors 2>&1
And you may want to add code like
url=`echo "$1" | sed 's/,/%2c/g'`
and use $url in openURL(); then you can also open URLs with a comma (some popular news sites use this).
Ughh. Why would they do that? To be perverse, I suppose.
...
Joachim
Randall Schulz