const __fg_gui_fn_t __fg_gui_fn[] = {
-
- // File
- {"reInit", reInit},
#ifdef TR_HIRES_SNAP
{"dumpHiResSnapShot", fgHiResDumpWrapper},
#endif
#if !defined(WIN32)
- string help_app = fgGetString("/sim/startup/browser-app");
+ command = globals->get_browser();
+ string::size_type pos;
+ if ((pos = command.find("%u", 0)) != string::npos)
+ command.replace(pos, 2, path.str());
+ else
+ command += " " + path.str();
- if ( system("xwininfo -name Netscape > /dev/null 2>&1") == 0 ) {
- command = help_app + " -remote \"openURL(" + path.str() + ")\"";
- } else {
- command = help_app + " " + path.str();
- }
command += " &";
system( command.c_str() );
}
SG_LOG( SG_GENERAL, SG_INFO, "FG_ROOT = " << '"' << root << '"' << endl );
+ globals->set_browser(fgGetString("/sim/startup/browser-app", "firefox %u"));
+
#if defined(FX) && defined(XMESA)
// initialize full screen flag
globals->set_fullscreen(false);
// Roots of FlightGear scenery tree
string_list fg_scenery;
+ string browser;
+
// Fullscreen mode for old 3DFX cards.
#if defined(FX) && defined(XMESA)
bool fullscreen;
inline const string_list &get_fg_scenery () const { return fg_scenery; }
void set_fg_scenery (const string &scenery);
+ inline const string &get_browser () const { return browser; }
+ void set_browser (const string &b) { browser = b; }
+
#if defined(FX) && defined(XMESA)
inline bool get_fullscreen() const { return fullscreen; }
inline bool set_fullscreen( bool f ) { fullscreen = f; }