withArgs = "chrome:
withArgs = "about:blank";
static nsresult HandleEditorStartup( nsICmdLineService* cmdLineArgs, nsIPref *prefs,  PRBool heedGeneralStartupPrefs){	char* cmdResult = nsnull;	char *  urlstr=nsnull;	nsString withArgs;	nsresult rv;	PRBool forceLaunchEditor = PR_FALSE;	if (heedGeneralStartupPrefs) {		prefs->GetBoolPref(PREF_GENERAL_STARTUP_EDITOR,&forceLaunchEditor);	}  	rv = cmdLineArgs->GetCmdLineValue("-edit", &cmdResult);  if (NS_SUCCEEDED(rv))  {    if (forceLaunchEditor || (cmdResult && (PL_strcmp("1",cmdResult)==0))) {      urlstr = "chrome://editor/content/";      withArgs = "chrome://editor/content/EditorInitPage.html";           OpenWindow( urlstr, withArgs.GetUnicode() );    }    // Check for -editor -- this will eventually go away    if (nsnull == urlstr)    {      rv = cmdLineArgs->GetCmdLineValue("-editor", &cmdResult);      if (NS_SUCCEEDED(rv))      {        if (cmdResult && (PL_strcmp("1",cmdResult)==0)) {          printf(" -editor no longer supported, use -edit instead!\n");          return NS_ERROR_FAILURE;		        }      }    }       }    	return NS_OK;}