Package: hugin / 2022.0.0+dfsg-2

43_fallbackhelp.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Author: Andreas Metzler
Description: Invoke sensible-browser instead of using 
 wxLaunchDefaultBrowser(). The latter does not work on e.g. windowmaker.
Last-Update: 2017-12-09

--- a/src/hugin1/hugin/HtmlWindow.cpp
+++ b/src/hugin1/hugin/HtmlWindow.cpp
@@ -31,7 +31,11 @@ IMPLEMENT_DYNAMIC_CLASS(HtmlWindow, wxHt
 void HtmlWindow::OnLinkClicked(const wxHtmlLinkInfo& link)
 {
     if (link.GetHref().StartsWith(_T("http://")))
-        wxLaunchDefaultBrowser(link.GetHref());
+    {
+        /* wxLaunchDefaultBrowser(link.GetHref()); */
+        wxString cmd = (wxT("sensible-browser ") + link.GetHref());
+        wxExecute(cmd, wxEXEC_ASYNC);
+    }
     else
         wxHtmlWindow::OnLinkClicked(link);
 }