boinc (6.10.58+dfsg-3) 003_use_sensible-browser.patch

Summary

 clientgui/hyperlink.cpp |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

    
download this patch

Patch contents

Author: Frank S. Thomas <frank@thomas-alfeld.de>
Description: use sensible-browser only, because upstream's attempt to
start a browser fails miserably.
Disclaimer: This patch is Debian-specific. Don't use it for non Debian packages.
The program "sensible-browser" is part of the essential package debianutils.

--- boinc.orig/clientgui/hyperlink.cpp
+++ boinc/clientgui/hyperlink.cpp
@@ -171,7 +171,8 @@
 }
 
 void wxHyperLink::ExecuteLink (const wxString &strLink) {
-    if (!wxLaunchDefaultBrowser(strLink)) {
+    wxString cmd = wxT("sensible-browser ") + strLink;
+    if (!::wxExecute(cmd, wxEXEC_ASYNC)) {
         wxString strDialogTitle = wxEmptyString;
         wxString strDialogMessage = wxEmptyString;