click on URL in 'about' box, tries to load URL but fails; use xdg to launch external browser?

Bug #549245 reported by Kevin Mark
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Lernid
Incomplete
Undecided
Unassigned

Bug Description

 /usr/bin/lernid:317: GtkWarning: Unable to show 'http://wiki.ubuntu.com/Lernid': Failed to execute child process "/opt/firefox/firefox" (No such file or directory)
  response = about.run()
------------------------------------------
in version 0.6, on line 317, I tried to click on the URL in the 'about box'. the code 'respose = about.run()' seems not to be a python error but gtk+. It tried to run '/opt/firefox/firefox' with the URL and since this binary or a link to it doesn't exists, the line fails but does not crash the program. I grep'd in /etc and /lib and found no refernce to /opt/firefox/firefox. (grep -R -i firefox ...). the dependency 'python-gtk' seems to be the starting point but its dependencies are where the answer will be.(apt-cache depends python-gtk). if I create a simlink from /usr/bin/firefox to /opt/firefox/firefox, that is a work-a-round.

Revision history for this message
Michael Budde (mbudde) wrote :

Do you have '/opt/firefox/firefox' in the web browser command field in System → Preferences → Preferred Applications?

Revision history for this message
Kevin Mark (kmark) wrote :

my system had ubuntu, then went to kubuntu then week ago removed most of kde and installed lxde. (as far as I know) I dont have that menu choice on my system. I did find a similar bug (https://bugs.launchpad.net/ubuntuone-client/+bug/401764). There may be more. I tracked down the odd program invocation to gtk_show_uri() which is the default when gtk_about_dialog_set_uri_hook() is not set. gtk_show_uri() somehow checks for certain values that I think are in $HOME and might be set elsewhere like in /etc. They are set in
/home/$USER/.gconf/desktop/gnome/url-handlers/{chrome|ftp|mailto|http|https}/%gconf.xml

the contents of ~/.gconf/desktop/gnome/url-handlers/http/%gconf.xml is:
----------------------------------------------------------------------------------
<?xml version="1.0"?>
<gconf>
        <entry name="needs_terminal" mtime="1199915418" type="bool" value="false">
        </entry>
        <entry name="enabled" mtime="1199915418" type="bool" value="true">
        </entry>
        <entry name="command" mtime="1199915418" type="string">
                <stringvalue>/opt/firefox/firefox &quot;%s&quot;</stringvalue>
        </entry>
</gconf>
----------------------------------------------------------------------------------
so since I did not know about setting these values, the gtk libs used this value and since it was set to an odd value, the command failed. I think it may be that the program assume your system has certain dependencies like the gnome-based ubuntu system and that you can use some gui method to set that values you suggest. On a non-gnome-based system, these would seem to fail. maybe it needs a neutral way to open a uri like 'xdg' stuff as a fallback?
this was the email I found as the major clue:
http://<email address hidden>/msg09940.html

Revision history for this message
Mohammad AbuShady (coalwater) wrote :

I'm not sure but u think that this bug is a bad gconf setting, it's not related to lernid, if you fix your gconf and set ur http url handler correctly, every thing should be back to normal
I don't understand though why firefox was in /opt, i thought it's supposed to be in /usr

Changed in lernid:
status: New → Incomplete
summary: - click on URL in 'about' box, tries to load URL but fails
+ click on URL in 'about' box, tries to load URL but fails; use xdg to
+ launch external browser?
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.