Ignore:
Timestamp:
2003-05-27T10:58:48+12:00 (21 years ago)
Author:
sjboddie
Message:

Added "start_browser" option to server.exe's gsdlsite.cfg file. Setting
this option to 0 will make the server start up without opening a browser
window.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/src/w32server/fnord.cpp

    r4292 r4339  
    340340    enterlib_libaccessnum = libaccessnum;
    341341   
    342     // do a quick check to make sure we're using netscape when
    343     // we should be (it might have been just installed)
    344     if (netscapeneeded) gsdl_check_browser_settings (netscapeneeded);
    345    
    346     char *cstr_url = url.getcstr();
    347     if (strlen (startbrowserdir) <= 0) {
    348       res = startbrowser (cstr_url, gsdl_browser_exe, NULL);
    349      
    350     } else res = startbrowser (cstr_url, gsdl_browser_exe, startbrowserdir);
    351    
    352     delete cstr_url;
    353 
     342    if (gsdl_start_browser) {
     343
     344      // do a quick check to make sure we're using netscape when
     345      // we should be (it might have been just installed)
     346      if (netscapeneeded) gsdl_check_browser_settings (netscapeneeded);
     347   
     348      char *cstr_url = url.getcstr();
     349      if (strlen (startbrowserdir) <= 0) {
     350    res = startbrowser (cstr_url, gsdl_browser_exe, NULL);
     351   
     352      } else res = startbrowser (cstr_url, gsdl_browser_exe, startbrowserdir);
     353   
     354      delete cstr_url;
     355
     356    } else {
     357      return 1;
     358    }
    354359  }
    355360 
     
    496501    if ((GoButton != NULL) && ((HWND)LParam == GoButton)) {
    497502      // attempt to start a browser
     503      gsdl_start_browser = 1;
    498504      if (enter_library (Window) && !gsdl_show_console)
    499505        ShowWindow(Window,SW_MINIMIZE);
     
    974980 
    975981  // attempt to start a browser
    976   if (gsdl_show_console) infostring = strnothing;
     982  if (gsdl_show_console || !gsdl_start_browser) infostring = strnothing;
    977983  else infostring = strsb;
    978984  paint_window (pdc, windowRect);
     
    10301036    // do check
    10311037    lastcheck = GetTickCount();
    1032     if (browserrunning(gsdl_browser_exe) == NO_ERROR) {
     1038    if (gsdl_start_browser && browserrunning(gsdl_browser_exe) == NO_ERROR) {
    10331039      // we were able to connect to a browser
    10341040      seenbrowser = 1;
Note: See TracChangeset for help on using the changeset viewer.