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:
Are you double-clicking the link?
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"
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?
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.
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.
Created attachment 30172 [details] firefox script used in debian unstable Here is the script that debian users have in /usr/bin/firefox
No problem when using epiphany as browser.
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?
Yes, I plan to fix this
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.
Don, thanks for reporting. I'll get this one figured out today. It just keeps wriggling off my plate.
Created attachment 30735 [details] Sorry, wrong bug. please disregard
Please disregard the last attachment.. Wrong bug.
Fixed in mozilla-launcher-1.7, thanks
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.
For what it's worth, this is what gaim prints in the debug window: gtknotify: Executing firefox -remote "openURL("http://gentoo.org",new-window)"
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.
That explanation works for me. Thanks.
*** Bug 61067 has been marked as a duplicate of this bug. ***
*** Bug 61343 has been marked as a duplicate of this bug. ***
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.