Re: [Evolution] Re: Netscape as default browser (was: Re: [Evolution] ImproperMozillastart aft



Quick one for you Guenther,

        I really like your script, I really prefer Mozilla to open up a new tab
instead of a window. But one problem I run into, when testing the
script, if no Mozilla windows are present the script fails, it only runs
fine if one Moz window already exists. Here is the error I get:

[mathieu localhost bin]$ ./mozilla-remote.sh
 
Gnome-CRITICAL **: file gnome-moz-remote.c: line 645
(mozilla_remote_commands):
assertion `window != 0' failed.
[mathieu localhost bin]$

        What can I do to fix this?

        Mathieu

On Sun, 2003-08-24 at 19:12, guenther wrote:
#!/bin/bash
netscape -remote='openURL('$1', new-tab)' || netscape $1     -
This worked
for netscape

This is the same as I posted (basically, beside some very minor
changes). Just curious: Why did you do those changes?

To be honest with you, this is all real new to me and I thought 
gnome-moz-remote applied specifically to gnome and mozilla.  I
didn't know 
if gnome-netscape-remote would work.  Does "sh" in #!/bin/sh stand
for any 
shell?  Now, my script is like the one below, but I subsituted
"netscape" 
for mozilla.

Hey, that's legitimate. As long as it works, the resolution is very
fine. :)

I was just curious. The substitution of netscape for mozilla was
mentioned by me -- but there was an additional '='. That was the
reason
why I asked: Where did you get that from?


On most modern GNU/Linux systems, sh is simply a symlink to bash and
therefore it is really the same. It's just shorter... ;)

$ ls -la /bin/sh
lrwxrwxrwx    1 root     root            4 Mar 30 05:36 /bin/sh ->
bash*


guenther, thanks a million for your patience, understanding, and for
helping 
others.  :-)

You're very welcome. :)

...guenther




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]