LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Mozilla and firebird.. (https://www.linuxquestions.org/questions/linux-software-2/mozilla-and-firebird-139907/)

f0rmula 01-29-2004 04:19 AM

Mozilla and firebird..
 
Just installed firebird.. UNBELIEVABLY GOOD...

problem is i still have mozilla installed.. when i change the default browser in gnome settings from "mozilla" to "mozilla-firebird" whenever i open mozilla from clicking a link in evolution (in an email) it requests that i select a profile.. and i cant run more than one window at the same time using the same profile..

grr...

thing is.. if i leave it set to mozilla and open up a firebird, every time i click a link in evolution it opens up in a beautiful new firebird window, just like it should.. problem arises when i dont have a firebird window open before i click the link, it starts a new original mozilla process..

anybody have any ideas how to prevent this???

help appreciated...

james

b0uncer 01-29-2004 04:45 AM

I think it's because of the "run-mozilla.sh" or something like that...I've had some cases on this.

1) when I compiled firebird and thunderbird from source last time, it happened that if nothing was open, "mozilla" opened a normal mozilla. when firebird was opened, running any mozilla/-thunderbird/-firebird caused firebird to launch - no normal mozilla or anything else no matter what I tried, unless I first closed firebird and started all over again
2) opening thunderbird did nothing by using "mozilla-thunderbird". instead, "run-mozilla.sh --thunderbird-bin" (or what were they exactly?) caused thunderbird to open sometimes, but sometimes it opened just a normal mozilla

and things like that. so I think the thing is, all of those (mozilla, thunder- and firebird) use somekind of "same" script to launch the basic engine or something, and then just "specialize" into thunderbird or firebird...sounds stupid, but it just looked like it (nowadays I don't have any problems, I use binaries)....don't know if this helps at all but to get the picture...so locate the place where your browser is launched and check out the commandline, and see whether it's like

run-mozilla or
run-mozilla --mozilla-firebird or
mozilla-firebird

or whatever...play with those :) or then you can just remove normal mozilla & use only firebird. that might do it the easiest way....

firebird _is_ awesome.

f0rmula 01-29-2004 04:54 AM

good to know im not alone..

but im really lost on this one..

Code:

[james@hansenj paper_for_europar]$ /usr/lib/mozilla-firebird-0.6.1/run-mozilla.sh
 
run-mozilla.sh: Cannot execute .
 
[james@hansenj paper_for_europar]$ /usr/lib/mozilla-firebird-0.6.1/run-mozilla.sh --mozilla-firebird
 
run-mozilla.sh: Cannot execute --mozilla-firebird.
 
[james@hansenj paper_for_europar]$

just always says cannot run... :confused:

mozilla-firebird launches correctly, but when called multiple times, requires more than one protocol.. :(

james

b0uncer 01-29-2004 05:19 AM

I located where my executable for firebird (mozilla-firebird) is, and found out it was a shell script...here's what's inside:

#!/bin/sh

MOZ_FIREBIRD_EX=/opt/mozilla-firebird/bin/MozillaFirebird
OPEN_IN=new-window
#OPEN_IN=new-tab
if [ "$2" = "tab" ]; then OPEN_IN=new-tab; fi

$MOZ_FIREBIRD_EX -remote "ping()" > /dev/null 2>&1

if [ $? -eq 0 ]; then
exec $MOZ_FIREBIRD_EX -remote "openURL($1,$OPEN_IN)"
else
if [ "$2" = "tab" ]; then $0 $1; exit 0; fi
exec $MOZ_FIREBIRD_EX "$@"
fi

so basically it just defines whether to open a new window in tab or in a window. the next thing I did was to check out the MozillaFirebird which is an executable for this file...also a shell script (and a bit longer than this). it uses the run-mozilla.sh and at first glance it seemed that the run-mozilla.sh is the one which truly starts a mozilla-program....like it's the "core" of them all.

now what's interesting is the way it starts...I didn't spend too much time on it but it looked like it passes the program name to be run as a variable so could it be that after you've first started firebird, the variable is set to "MozillaFirebird" or something and it opens firebirds...but if you haven't, it uses just the normal mozilla?

in this case you just would need to find a way to set the variable before starting run-mozilla.sh or then change it in the script (which would disable the normal mozilla, if you don't specially tell run-mozilla to use it)...?

check out this:

$ locate MozillaFirebird
$ locate run-mozilla.sh
then
$ cat [where-ever-it-is]/MozillaFirebird
and after it look
$ cat [where-ever-it-is]/run-mozilla.sh

I think the variable passed to run-mozilla.sh is the key to this one :)

f0rmula 01-29-2004 05:29 AM

looking at it now.. cheers.. will keep you posted :)

tried removing original mozilla.. firebird still did exactly the same..

james

DrD 02-12-2004 03:12 AM

Where exactly are the gnome settings you are reffering to in this post, that let's you change the default browser to firebird? I was going to make a new post but it would seem to make more sense to just post it here.

b0uncer 02-12-2004 10:41 AM

now firefox's been released, so you may also try getting it & replacing your firebird with firefox :)


All times are GMT -5. The time now is 10:58 PM.