Added "/sim/startup/browser-app" as a property.
This commit is contained in:
parent
76815256f7
commit
4fe4a14ab8
1 changed files with 9 additions and 9 deletions
|
@ -432,24 +432,24 @@ void helpCb (puObject *)
|
||||||
# endif
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if !defined(WIN32)
|
SGPath path( globals->get_fg_root() );
|
||||||
string url = "http://www.flightgear.org/Docs/InstallGuide/getstart.html";
|
path.append( "Docs/index.html" );
|
||||||
|
|
||||||
|
string help_app = fgGetString("/sim/startup/browser-app");
|
||||||
|
|
||||||
if ( system("xwininfo -name Netscape > /dev/null 2>&1") == 0 ) {
|
if ( system("xwininfo -name Netscape > /dev/null 2>&1") == 0 ) {
|
||||||
command = "netscape -remote \"openURL(" + url + ")\" &";
|
command = help_app + " -remote \"openURL(" + path.str() + ")\"";
|
||||||
} else {
|
} else {
|
||||||
command = "netscape " + url + " &";
|
command = help_app + path.str();
|
||||||
}
|
}
|
||||||
#else
|
#if !defined(WIN32)
|
||||||
command = "webrun.bat";
|
command += " &";
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
system( command.c_str() );
|
system( command.c_str() );
|
||||||
//string text = "Help started in netscape window.";
|
|
||||||
|
|
||||||
//mkDialog (text.c_str());
|
|
||||||
mkDialog ("Help started in netscape window.");
|
mkDialog ("Help started in netscape window.");
|
||||||
}
|
}
|
||||||
|
|
||||||
#define TR_HIRES_SNAP
|
#define TR_HIRES_SNAP
|
||||||
#if defined( TR_HIRES_SNAP)
|
#if defined( TR_HIRES_SNAP)
|
||||||
#include <simgear/screen/tr.h>
|
#include <simgear/screen/tr.h>
|
||||||
|
|
Loading…
Add table
Reference in a new issue