Arthur and James,

Yes, I agree it's silly, but currently help was broken on my two mac systems (giving a log message that netscape couldn't be found), followed by a dialog that my browser was started. It's really important to me to have browser-based help work on 0.9.9... I forgot that it was broken until now. (I know I had this working at one point, and thought I still did as I was building with a modified options.cxx. I was wrong). I promise to pay much more attention next time or at least be conscious when I try these things

Unfortunately, my fix doesn't work.

I think it should have been the following diff, but as neither diff is working, don't apply them to cvs please.

I can't get this options.cxx change working on Mac OS X, I have to use the option --browser-app="open /Applications/Safari.app" when starting flightgear.

Any idea where else /sim/startup/browser-app is set or what (if anything) is overwriting it?

Never mind about the cvs update. It wouldn't break anything even if applied, because it didn't work anyway. 8-(

It looks like the mac browser exec actually belongs in gui/ gui_funcs.cxx. If I modify void helpCb (puObject *) (line 238) to read:

string help_app = "open /Applications/Safari.app" ;//fgGetString ("/sim/startup/browser-app");

Safari starts up fine and opens help so this is the spot Arthur would need to pop his code into, I guess. It would be nice if the return code from the system call or ShellExecute could be checked before mkDialog is called. It's adding insult to injury when your browser hasn't started, but the dialog says it has 8-(

I'm still a little confused as to where /sim/startup/browser-app is being set, as it doesn't seem to be in main/options.cxx as I expected.

I will leave this to much wiser heads than my own. Sorry for the trouble. Some days it doesn't pay to get out of bed in the morning... 8-(

I'll happily wait for arthur to fix it.

Thanks to Arthur and James and all the rest...

Ima

Index: FlightGear/src/Main/options.cxx
===================================================================
RCS file: /var/cvs/FlightGear-0.9/FlightGear/src/Main/options.cxx,v
retrieving revision 1.73
diff -u -r1.73 options.cxx
--- FlightGear/src/Main/options.cxx 12 Oct 2005 08:55:58 -0000 1.73
+++ FlightGear/src/Main/options.cxx     12 Nov 2005 02:41:34 -0000
@@ -172,7 +172,11 @@
     fgSetString("/sim/control-mode", "joystick");
     fgSetBool("/sim/auto-coordination", false);
#if !defined(WIN32)
+#ifdef __APPLE__
+ fgSetString("/sim/startup/browser-app", "open /Applications/ Safari.app");
+#else
     fgSetString("/sim/startup/browser-app", "netscape");
+#endif
#else
     fgSetString("/sim/startup/browser-app", "webrun.bat");
#endif


_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@flightgear.org
http://mail.flightgear.org/mailman/listinfo/flightgear-devel
2f585eeea02e2c79d7b1d8c4963bae2d

Reply via email to