Fedora About Box Problem...

Hi,

This afternoon I added an about box to one of my applications

     def FillInfo(self):
         info = wx.AboutDialogInfo()
         info.Name = "WxPgBrowser"
         info.Version = VERSION
         info.Copyright = "(C) GPL2 Jerry LeVan"
         info.Description = wordwrap(
             "WxPgBrowser is a program that allows interaction with a Postgresql Database.\n\n\n "
             "Requirements:\n\n"
             " Python (2.4 or Better)\n"
             " WxPython (2.8.4 or Better)\n"
             " Psycopg2 (2.0.3 or Better) ",
             350, wx.ClientDC(self))
         info.WebSite = ("http://homepage.mac.com/levanj", "Home Site")
         info.Developers = [ "Jerry LeVan",
                             "WxPython Users"]

         #info.License = wordwrap(licenseText, 500, wx.ClientDC(self))
         return info

The evil line is:
         info.WebSite = ("http://homepage.mac.com/levanj", "Home Site")

When I execute wx.AboutBox(self.info) , everything appears ok
but the WebSite link does *not* work on my Fedora 7 system

I get two errors
   1) No default viewer for html files
   2) http://homepage.mac.com/levanj does not exist

The link *does* work in WinXP and MacOS X.

What can I do to get the link working on my linux box?

Thanks

Jerry

Jerry LeVan wrote:

When I execute wx.AboutBox(self.info) , everything appears ok
but the WebSite link does *not* work on my Fedora 7 system
I get two errors
  1) No default viewer for html files
  2) http://homepage.mac.com/levanj does not exist
The link *does* work in WinXP and MacOS X.
What can I do to get the link working on my linux box?

The about box uses wxLaunchDefaultBrowser() to open the browser for the link, so if the system isn't configured for what that function needs then it will fail. That's the first error. The second error is probably just a misinterpretation of the first error in another part of the code.

Here's how wxLaunchDefaultBrowser works on Linux:

* If the desktop environment is GNOME then try to find the default browser by executing "gconftool-2 --get /desktop/gnome/applications/browser/exec", if one is configured then run that command + URL.

  the above command gives 'firefox' (no quotes) which ought to do the trick, but
it fails ;(

I run a gnome desktop with no kde stuff except what is needed for "k3b"

* If the desktop environment is KDE then run "kfmclient openURL " + URL

* If still not successful then get the default command from wxTheMimeTypesManager->GetFileTypeFromExtension(_T("html"));

* If still not successful then check the BROWSER environment variable for the command to use.

This (setting BROWSER=firefox) works but it is sorta kludgy...

Here are the precise error messages
03:00:28 PM: No default application configured for HTML files.
03:00:28 PM: Failed to open URL "http://homepage.mac.com/levanj" in default browser. (error 2: No such file or directory)

···

On Jul 19, 2007, at 2:15 PM, Robin Dunn wrote: