File: 43_fallbackhelp.patch

package info (click to toggle)
hugin 2025.0.0%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 32,880 kB
  • sloc: cpp: 130,073; ansic: 6,263; python: 1,156; perl: 701; xml: 179; sh: 64; makefile: 29
file content (21 lines) | stat: -rw-r--r-- 732 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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
Forwarded: not-needed

--- 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);
 }