Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 47942 - Gaim open two FireFox windows.
Summary: Gaim open two FireFox windows.
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GNOME (show other bugs)
Hardware: PPC Linux
: High trivial (vote)
Assignee: Mozilla Gentoo Team
URL:
Whiteboard:
Keywords:
: 61067 61343 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-04-15 11:00 UTC by Ernst Sjöstrand
Modified: 2004-08-23 11:48 UTC (History)
4 users (show)

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


Attachments
firefox script used in debian unstable (firefox,7.63 KB, text/plain)
2004-04-27 12:05 UTC, Don Seiler (RETIRED)
Details
Sorry, wrong bug. please disregard (Makefile,23.85 KB, text/plain)
2004-05-04 12:27 UTC, Josh Poimboeuf
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ernst Sjöstrand 2004-04-15 11:00:36 UTC
Yes, Gaim opens two FireFox windows every time I click a link in a chat window.
The second one comes after a small delay.
Latest Gaim, latest FireFox.

Reproducible: Always
Steps to Reproduce:
Comment 1 Don Seiler (RETIRED) gentoo-dev 2004-04-19 07:24:47 UTC
Are you double-clicking the link?
Comment 2 Ernst Sjöstrand 2004-04-19 08:07:42 UTC
No.
Tried it right now.
All software latest ~ppc. Mozilla is not installed.
[ebuild   R   ] net-www/mozilla-firefox-0.8-r2  
[ebuild   R   ] net-im/gaim-0.76-r2  
[ebuild   R   ] gnome-base/gnome-desktop-2.6.0.1

Running a Gnome session. Doesn't matter if Firefox is running or not.
Gaim configured to "Firefox" and "New Window"
Comment 3 Robert Davis 2004-04-22 07:35:04 UTC
Mine is set for Browser Default.  I wonder if Firefox is starting an instance and then opening a new window for the gaim link?  Is one window blank and one the gaim link?
Comment 4 Don Seiler (RETIRED) gentoo-dev 2004-04-27 11:38:04 UTC
Actually I can confirm this is happening on mine.

I suggest for Gentoo you try browser default for now since Gentoo has a wrapper script.

I'll dig around and see where they are calling it.
Comment 5 Don Seiler (RETIRED) gentoo-dev 2004-04-27 12:04:48 UTC
This doesn't happen for the debian folks, they also use a script for /usr/bin/firefox but it looks to be one from the Mozilla team.

So this is definitely on our end.  If you wish to pursue it, this bug can be re-assigned to the mozilla@gentoo.org team.  I'm CC'ing them now.  Otherwise you'll have to accept "browser default" or use the manual command to specify how you'd like to call firefox.

If you want to look at how gaim does it look for gaim_gtk_notify_uri function in src/gtknotify.c.
Comment 6 Don Seiler (RETIRED) gentoo-dev 2004-04-27 12:05:48 UTC
Created attachment 30172 [details]
firefox script used in debian unstable

Here is the script that debian users have in /usr/bin/firefox
Comment 7 Ernst Sjöstrand 2004-04-29 10:54:04 UTC
No problem when using epiphany as browser.
Comment 8 Don Seiler (RETIRED) gentoo-dev 2004-04-29 11:51:41 UTC
Yeah I'm pretty sure that this is just a clash with what other distros are doing in their firefox scripts and what we're doing on the Gentoo side.

Mozilla team, any thoughts?
Comment 9 Aron Griffis (RETIRED) gentoo-dev 2004-04-29 12:45:23 UTC
Yes, I plan to fix this
Comment 10 Don Seiler (RETIRED) gentoo-dev 2004-05-03 07:17:35 UTC
Just an FYI that I tried latest mozilla-launcher-1.5 and this still occurs when there is an existing firefox window open.  If firefox is not running, then it will just open a new window.
Comment 11 Aron Griffis (RETIRED) gentoo-dev 2004-05-03 08:13:12 UTC
Don, thanks for reporting.  I'll get this one figured out today.  It just keeps wriggling off my plate.
Comment 12 Josh Poimboeuf 2004-05-04 12:27:30 UTC
Created attachment 30735 [details]
Sorry, wrong bug.  please disregard
Comment 13 Josh Poimboeuf 2004-05-04 12:29:57 UTC
Please disregard the last attachment.. Wrong bug.
Comment 14 Aron Griffis (RETIRED) gentoo-dev 2004-05-04 14:47:53 UTC
Fixed in mozilla-launcher-1.7, thanks
Comment 15 Don Seiler (RETIRED) gentoo-dev 2004-05-05 06:35:41 UTC
OK the duplicate window launch has gone away.  However not it doesn't launch any window if firefox is not already open.  If firefox IS already open, it will open a new window as desired.
Comment 16 Don Seiler (RETIRED) gentoo-dev 2004-05-05 07:19:05 UTC
For what it's worth, this is what gaim prints in the debug window:

gtknotify: Executing firefox -remote "openURL("http://gentoo.org",new-window)"
Comment 17 Aron Griffis (RETIRED) gentoo-dev 2004-05-05 08:33:11 UTC
rizzo, this wouldn't work with the debian script either.  The problem is that gaim is too smart for itself.  It's trying to send a command to a running firefox, but there's no running firefox.

If you use "new window" (in gaim) then it runs "firefox -remote openURL(url,new-window)" which will only work when there is a browser running.  gaim's "new tab" option is similar.

If you use "browser default" then it just runs "firefox url" which will always work.  The mozilla-launcher script will start a new browser when appropriate, otherwise it will honor MOZILLA_NEWTYPE in the environment.  The default for MOZILLA_NEWTYPE is "window"

This isn't behavior I should attempt to "fix" in the mozilla-launcher script.  Instead you should just use "browser default" and set MOZILLA_NEWTYPE to be either "tab" or "window" in your environment.
Comment 18 Don Seiler (RETIRED) gentoo-dev 2004-05-05 08:48:28 UTC
That explanation works for me.  Thanks.
Comment 19 Don Seiler (RETIRED) gentoo-dev 2004-08-23 08:37:10 UTC
*** Bug 61067 has been marked as a duplicate of this bug. ***
Comment 20 Don Seiler (RETIRED) gentoo-dev 2004-08-23 08:39:07 UTC
*** Bug 61343 has been marked as a duplicate of this bug. ***
Comment 21 Xake 2004-08-23 11:48:48 UTC
Is this not a bug in Firefox 0.9.3?
I have encountered the same problem in the windows-version of Firefox 0.9.3 and it had nothing to do with what program sends the link.
I have also encountered discussions about this behavor both in windows and linux-version(sorry, can't find the links right now).

Another thing I just don't like which I have seen is that Gaim is locked until both widnows is opened or if you choose to open into new tab in Gaim then Gaim is locked until the "Firefix - Select User Profile" window is closed. This window is produced by Firefox as it tries to open tab no 2 while the profile is in use.

As I thought that the "double-window" thing was a bug in Firefox 0.9.3 and the thing to do was to wait for the next version I filed a bug about what I saw as a another problem, but apperently it was a dup.

I still think "Firefox opens two windows" != "Gaim being locked by Firefox while Firefox being opened"
The lattest bug I at least have seen when my computer is over-loaded no matter if it is two windows or one being opened by Firefox.