Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 9962 - firefox and mozilla cannot coexist
Summary: firefox and mozilla cannot coexist
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Mozilla Gentoo Team
URL:
Whiteboard:
Keywords:
: 20057 (view as bug list)
Depends on:
Blocks:
 
Reported: 2002-10-30 08:10 UTC by Sebastian Sjöberg
Modified: 2004-04-14 14:30 UTC (History)
6 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sebastian Sjöberg 2002-10-30 08:10:12 UTC
I installed the phoenix-0.3 ebuild and it works fine but when I start mozilla i
get a new phoenix window instead. I want to be able to use both.
Comment 1 Ryan Shaw 2002-10-31 00:31:23 UTC
The problem is with mozilla-xremote-client, which checks for existing 
mozilla instances before starting mozilla. See the folowing phoenix bug
for more info:

http://bugzilla.mozilla.org/show_bug.cgi?id=170609

A workaround is to run /usr/lib/mozilla/mozilla-bin directly, which will
bypass the script at /usr/bin/mozilla which uses mozilla-xremote-client.
Comment 2 Thomas Raschbacher gentoo-dev 2002-11-01 12:47:11 UTC
hi!

there's no way at the moment to find out the name of the instance (mozilla or
phoenix)

this is the place where the args to mozilla-x-remote-client r parsed:
http://lxr.mozilla.org/seamonkey/source/xpfe/components/xremote/src/XRemoteService.cpp#93

afaik there r 2 options:

1) remove the ping() stuff from /usr/bin/mozilla
2) patch mozilla-sources

/me votes for 1

greetings, LordVan
Comment 3 Martin Schlemmer (RETIRED) gentoo-dev 2002-11-01 14:35:20 UTC
So you are going to inconvenience the 95% mozilla users for sake of the
5% that also have phoenix installed ?

You must remember .. if you take that ping stuff out, it will open new
instances of mozilla for each time you 'click' on a link (or whatever)...

I for one will vote against this.  Anyhow, who use two browsers in normal
circumstances ?
Comment 4 Martin Schlemmer (RETIRED) gentoo-dev 2002-11-01 14:35:49 UTC
So you are going to inconvenience the 95% mozilla users for sake of the
5% that also have phoenix installed ?

You must remember .. if you take that ping stuff out, it will open new
instances of mozilla for each time you 'click' on a link (or whatever)...

I for one will vote against this.  Anyhow, who use two browsers in normal
circumstances at the same time?
Comment 5 Thomas Raschbacher gentoo-dev 2002-11-01 18:25:31 UTC
that's a good point....

what about an addtional check if a mozilla process is running? shouldn't be too
difficult afaik...

greetings, LordVan
Comment 6 phoen][x 2002-11-07 13:34:41 UTC
Seems like it works with phoenix-0.4. I tested it a minute ago with:
$ phoenix &
$ mozilla

I got a phoenix window and a mozilla window - that's how it should be, right?
Plus it works the other way around, too.

Is it okay to close this bug?

-phoen][x-
Comment 7 Martin Schlemmer (RETIRED) gentoo-dev 2002-12-25 20:48:35 UTC
No traffic, seems fixed.
Comment 8 Martin Schlemmer (RETIRED) gentoo-dev 2003-04-27 16:17:23 UTC
*** Bug 20057 has been marked as a duplicate of this bug. ***
Comment 9 Martin Schlemmer (RETIRED) gentoo-dev 2003-04-27 16:18:12 UTC
Seems this is an issue again.  Could you try with mozilla-1.3 ?
Comment 10 Julien Allanos (RETIRED) gentoo-dev 2003-04-27 16:55:03 UTC
tried with mozilla-1.3-r1 (20030427), as well as mozilla-1.2.1-r5, and phoenix-bin-0.5 :

phoenix &
mozilla

i get two phoenix windows.
Comment 11 Aron Griffis (RETIRED) gentoo-dev 2004-03-27 21:00:10 UTC
I've looked at this in detail.  The problem is simply that xremote will communicate with any window on the display that provides the appropriate X properties.  The properties are identical between firefox and mozilla.  There are two possible ways to solve this problem:

1. Patch firefox, along with its version of xremote, to use firefox-specific properties instead of the generic mozilla variables.  This may be the best long-term solution and would not be terribly difficult to do.

2. Use a hack in the launcher script to expose only the good windows to xremote's search.

For right now I've implemented #2 in net-www/mozilla-launcher.  It uses xprop and LOGNAME to fool xremote into contacted only the right windows.  It's certainly a hack, but anything other than #1 will necessarily be a hack.  If it doesn't work out, then we'll have to investigate #1 further.

net-www/mozilla-launcher will first be used by net-www/mozilla-1.7_beta-r1 when I finish committing that.
Comment 12 Aron Griffis (RETIRED) gentoo-dev 2004-03-28 14:17:34 UTC
Fixed in mozilla-1.7_beta-r1 and mozilla-firefox-0.8-r2, both ~arch masked at the moment.  I will consider backporting to older ebuilds if these are not marked stable for 2004.1
Comment 13 Julien Allanos (RETIRED) gentoo-dev 2004-04-14 14:30:51 UTC
thanks, the problem seems to be solved by these masked versions of firefox and mozilla.