if (!mAppRegistryName.IsEmpty() && aTempFile)
if (mApplicationToUse)
nsresult nsExternalApplication::LaunchApplication(nsIFile * aTempFile){  nsresult rv = NS_OK;  if (!mAppRegistryName.IsEmpty() && aTempFile)  {	nsCAutoString command;    nsXPIDLCString path;    aTempFile->GetPath(getter_Copies(path)); 	// 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;}