Yuval Levy <goo...@levy.ch> wrote:
> Andreas Metzler wrote:
>> Yuval Levy <goo...@levy.ch> wrote:
>> [...]
>>>     * Improved usability, particularly crop settings and help which now 
>>> uses the system's default browser.
>> [...]

>> Hello,
>> This does not work for me at all. I somehow get the feeling that the
>> respective wx-function *requires* KDE or GNOME instead of
>> using/falling back to to /etc/{mailcap,mime.types} if necessary.

>> Could hugin perhaps fall back to old-style-help if lauching the
>> browser fails?

> My understanding is that this would be a wxWidgets issue. Have you 
> thought of filing a bug report there?

You are probably right. I will try whether wxWidgets upstream is as
responsive as you are. ;-)

[...]
> So I'm inclined to put an explanation how to remedy the failure (please 
> install a contemporary web browser).

export BROWSER=firefox
would probaly work.

> IMO it is safe to assume that a 
> system running a modern GUI application like Hugin has at least the 
> resources to run an applicable web browser. We are not asking the user 
> to be connected to the www (which would be unreasonable IMO).

I think you are misunderstanding me. I have got a webbrowser installed,
but hugin does not find it since it relies on KDE/Gnome
infrastructure to do so.

I have snipped your reasons why you do not want to rely the wx-help
anymore since your arguments were convincing.

For Debian I think we are going to use a patch like this one:
------------------------------------------
diff -NurbBp a/src/hugin1/hugin/MainFrame.cpp b/src/hugin1/hugin/MainFrame.cpp
--- a/src/hugin1/hugin/MainFrame.cpp    2009-10-11 07:48:35.000000000 +0200
+++ b/src/hugin1/hugin/MainFrame.cpp    2009-10-11 14:53:16.000000000 +0200
@@ -1131,10 +1131,14 @@ void MainFrame::DisplayHelp(wxString sec
         return;
     }
     DEBUG_INFO("help file: " << strFile.mb_str(wxConvLocal));
-    if(!wxLaunchDefaultBrowser(strFile))
+    /* if(!wxLaunchDefaultBrowser(strFile)) */
+    {
+        wxString cmd = wxT("sensible-browser ") + strFile;
+        if (!::wxExecute(cmd, wxEXEC_ASYNC))
     {
         wxLogError(_("Can't start system's web browser"));
     }
+    }
 }
 
 void MainFrame::OnTipOfDay(wxCommandEvent& WXUNUSED(e))
------------------------------------------

Does this look ok? (sensible-browser is Debian specific script that
searches for a install browser and invokes the prefered one.

thanks, cu andreas

-- 
`What a good friend you are to him, Dr. Maturin. His other friends are
so grateful to you.'
`I sew his ears on from time to time, sure'


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"hugin and other free panoramic software" group.
A list of frequently asked questions is available at: 
http://wiki.panotools.org/Hugin_FAQ
To post to this group, send email to hugin-ptx@googlegroups.com
To unsubscribe from this group, send email to 
hugin-ptx+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/hugin-ptx
-~----------~----~----~----~------~----~------~--~---

Reply via email to