Red Hat Bugzilla – Bug 489120
clicked http links don't open in firefox
Last modified: 2018-04-11 04:44:23 EDT
Description of problem:
Clicking on an html link does not open a browser window.
Version-Release number of selected component (if applicable):
rawhide, updated to today
click on a link
Steps to Reproduce:
This worked in Alpha 11
Preferred Apps has firefox.
This should be an F11 blocker!
And please don't ship this version of thunderbird to fc10 .
Confirmed. This is rather annoying.
Thanks for your bugreport. Could you send me what do these values contain in following gconf key names, please?
/desktop/gnome/applications/browser/exec = firefox
/desktop/gnome/url-handlers/https/command = firefox %s
/desktop/gnome/url-handlers/about/command = firefox %s
/desktop/gnome/url-handlers/http/command = firefox %s
[matej@hubmaier ~]$ gconftool-2 --get /desktop/gnome/applications/browser/exec
[matej@hubmaier ~]$ gconftool-2 --get /desktop/gnome/url-handlers/https/command
[matej@hubmaier ~]$ gconftool-2 --get /desktop/gnome/url-handlers/about/command
[matej@hubmaier ~]$ gconftool-2 --get /desktop/gnome/url-handlers/http/command
And actually, about: seems to work (at least about:plugins gives a sensible answer)
[matej@hubmaier ~]$ which firefox
That seems to be correct.
I believe t'bird uses /usr/lib/thunderbird-3.0b2/open-browser.sh to open an http link. It looks like t'bird passes the url to open-brower.sh, which uses gnome-open to find the system browser.
But it doesn't:
sh -x open-browser.sh google.com
+ '[' -z google.com ']'
+ '[' -f /usr/bin/gnome-open ']'
++ /usr/bin/gnome-open google.com
+ OUTPUT='Error showing url: Error stating file '\''/usr/lib/thunderbird-3.0b2/google.com'\'': No such file or directory'
+ '[' 1 -ne 0 ']'
+ error_exit 'Error showing url: Error stating file '\''/usr/lib/thunderbird-3.0b2/google.com'\'': No such file or directory'
+ echo 'Error showing url: Error stating file '\''/usr/lib/thunderbird-3.0b2/google.com'\'': No such file or directory'
Error showing url: Error stating file '/usr/lib/thunderbird-3.0b2/google.com': No such file or directory
+ '[' -a /usr/bin/zenity ']'
+ /usr/bin/zenity --error '--text=Error showing url: Error stating file '\''/usr/lib/thunderbird-3.0b2/google.com'\'': No such file or directory'
It looks like something's messed up with gnome-open.
We probably want to use xdg-open anyway. Does it work if you change open-browser.sh to use xdg-open instead?
You should call open-browser.sh with full URL, eg:
This is at least in my case working. It looks like TB is not running this script at all. Still investigating...
I think Jan is right... I poked this some more today.
I went into the Config Editor for TB (Preferences->Advanced) and looked at "network.protocol-handler.app.http" and "network.protocol-handler.app.https", they were set to "/usr/lib64/thunderbird-3.0b2/open-browser.sh". Just for kicks, I changed them to "/usr/lib64/thunderbird-3.0b2/open-browser.sh %s". Once I'd done that, when I clicked a link, thunderbird prompted me to select an application to open the URL type. I set it to /usr/lib64/thunderbird-3.0b2/open-browser.sh and links now open properly in Firefox.
Applicable only as a workaround, but maybe it will shed some light on the actual problem.
Also, noteworthy is that "network.protocol-handler.app.http" and "network.protocol-handler.app.https" are still set to the "/usr/lib64/thunderbird-3.0b2/open-browser.sh %s" value that I overrode them to, even though when it prompted me later, I only put in "/usr/lib64/thunderbird-3.0b2/open-browser.sh". I'm guessing this information is stored somewhere separate... :/
There seems to be missing nsIGnomeVFSService (NS_GNOMEVFSSERVICE_CONTRACTID) in rawhide build. Looks like missing library in BuildRequirement. I will review the building process after the weekend.
Added missing buildrequires and fixed in next release.