Red Hat Bugzilla – Bug 63115
gaim default URL handler broken, fix attached
Last modified: 2008-05-01 11:38:01 EDT
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.9) Gecko/20020405
Description of problem:
When you click on URL's in any gaim chat window, it sometimes opens Netscape
4.7x with the Red Hat welcome page, and sometimes it does nothing at all.
Something about Netscape handling broke in Skipjack.
After you manually change the default Netscape to other browsers it works fine.
I propose that the default gaim browser should be set to "GNOME URL Handler"
because Red Hat gaim depends on the existence of gnome, and the gnome setting
should always work by default. The gnome default is Mozilla.
gaimrc.c and gaim.spec patch included below.
Version-Release number of selected component (if applicable):
Skipjack beta 2
Steps to Reproduce:
1. Run gaim with default settings.
2. Click on a URL in a chat window.
Netscape doesn't bring you to that URL. Sometimes it doesn't open Netscape at all.
It should run the default browser and load the URL that you just clicked.
My proposed workaround fix that uses "GNOME URL Handler" by default is attached.
Created attachment 53044 [details]
gaimrc.c patch to gaim-0.53-1.src.rpm
Created attachment 53046 [details]
patch to gaim.spec
Better yet, make it use htmlview to catch a browser even if mozilla isn't installed.
Created attachment 53725 [details]
gaimrc.c patch against gaim-0.53-1.src.rpm
Created attachment 53726 [details]
gaim.spec patch against gaim-0.53-1
Is this satisfactory? Seems to work well.
Re-tested: Default (Netscape) URL handler still broken in Red Hat 7.3.
Please apply patch to change default URL handler to htmlview in order to fix this.
It would be very nice if the htmlview patch could be applied, perhaps along with
fixes for Bug 65263.
Does htmlview need to be added to the "Requires" section of the spec file as a
gaim has been upgraded to 0.59 in Limbo beta, this is good.
However, the default URL handler is still "Netscape". This makes URL handling
even more broken by default, now that Netscape is no longer distributed. Please
make the following to changes to the Limbo gaim package.
1. Make the default URL handler Manual, with "htmlview "%s" as the command.
Bero suggested the use of htmlview during the Skipjack beta after I suggested
changing the default to "Mozilla". htmlview seems more correct because it will
run any browser is available instead of making assumptions.
2. Add htmlview to the requires section of the gaim spec.
Created attachment 68884 [details]
gaim-urlhandler.patch against gaim-0.59-6 rawhide
Created attachment 68885 [details]
gaim-spec.patch against gaim-0.59-6 rawhide
I have tested a gaim package built with the above default URL handler change and
spec patch. It now works properly with default settings. Please apply.
gaim-0.59-7 added htmlview to requires, but is missing the above patch that uses
htmlview as the manual URL handler rather than Netscape.
Woops. Fixed in -8.