Help Help from the gui on mac os x is still broken.

The help application is STILL set to netscape even after the options.cxx change

(this is the main/options.cxx change applied to GUI/gui_funcs.cxx also).

Thanks!

Ima

Applying this patch fixes it for mac os x:
Index: FlightGear/src/GUI/gui_funcs.cxx
===================================================================
RCS file: /var/cvs/FlightGear-0.9/FlightGear/src/GUI/gui_funcs.cxx,v
retrieving revision 1.37
diff -u -r1.37 gui_funcs.cxx
--- FlightGear/src/GUI/gui_funcs.cxx 12 Nov 2005 11:40:57 -0000 1.37
+++ FlightGear/src/GUI/gui_funcs.cxx    13 Nov 2005 11:27:54 -0000
@@ -237,7 +237,20 @@
#if !defined(WIN32)
-    string help_app = fgGetString("/sim/startup/browser-app");
+string help_app = fgGetString("/sim/startup/browser-app");
+
+//SG_LOG( SG_GENERAL, SG_INFO, " Help application -- " << help_app );
+SG_LOG( SG_GENERAL, SG_ALERT, " Help application -- " << help_app );
+
+#if defined(__APPLE__)
+    help_app = "open";
+#elif defined(sgi)
+    help_app = "launchWebJumper");
+#else
+    envp = ::getenv( "WEBBROWSER" );
+    if (!envp) envp = "netscape";
+    fgSetString("/sim/startup/browser-app", envp);
+#endif
     if ( system("xwininfo -name Netscape > /dev/null 2>&1") == 0 ) {
command = help_app + " -remote \"openURL(" + path.str() + ") \"";



_______________________________________________
Flightgear-devel mailing list
[email protected]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel
2f585eeea02e2c79d7b1d8c4963bae2d

Reply via email to