]> git.mxchange.org Git - flightgear.git/blobdiff - src/GUI/gui.cxx
Added "/sim/startup/browser-app" as a property.
[flightgear.git] / src / GUI / gui.cxx
index 97dc8f3094e7d75167fb7c9147c14c5d97edf146..27af469bd78561ae1447eaf678baec03e0f3919c 100644 (file)
@@ -432,24 +432,24 @@ void helpCb (puObject *)
 #  endif
 #endif
        
-#if !defined(WIN32)
-    string url = "http://www.flightgear.org/Docs/InstallGuide/getstart.html";
+    SGPath path( globals->get_fg_root() );
+    path.append( "Docs/index.html" );
        
+    string help_app = fgGetString("/sim/startup/browser-app");
+
     if ( system("xwininfo -name Netscape > /dev/null 2>&1") == 0 ) {
-        command = "netscape -remote \"openURL(" + url + ")\" &";
+        command = help_app + " -remote \"openURL(" + path.str() + ")\"";
     } else {
-        command = "netscape " + url + " &";
+        command = help_app + path.str();
     }
-#else
-    command = "webrun.bat";
+#if !defined(WIN32)
+    command += " &";
 #endif
        
     system( command.c_str() );
-    //string text = "Help started in netscape window.";
-
-    //mkDialog (text.c_str());
     mkDialog ("Help started in netscape window.");
 }
+
 #define TR_HIRES_SNAP
 #if defined( TR_HIRES_SNAP)
 #include <simgear/screen/tr.h>