mApplication->Spawn(&strPath, 1);
mApplicationToUse->Spawn(&strPath, 1);
nsresult nsExternalApplication::LaunchApplication(nsIFile * aTempFile){  nsresult rv = NS_OK;  nsXPIDLCString path;  aTempFile->GetPath(getter_Copies(path));  // if we were given an application to use then use it....otherwise  if (mApplicationToUse)  {    const char * strPath = (const char *) path;    mApplication->Spawn(&strPath, 1);  }  else if (!mAppRegistryName.IsEmpty() && aTempFile)  {	  nsCAutoString command; 	// build the command to run   	command =  (const char *)mAppRegistryName;	command += " ";	command += (const char *)path;#ifdef DEBUG_seth	printf("spawn this: %s\n",(const char *)command);#endif	int err = system((const char *)command);	if (err == 0) {		rv = NS_OK;	}	else {		rv = NS_ERROR_FAILURE;	}  }  return rv;}