rv = StartupProfile(profile_dir, "mozilla");
rv = StartupProfile("/home/briane", ".mozilla");
StartupEmbedding(){    nsresult rv;	char *profile_dir;#ifdef _BUILD_STATIC_BIN  // Initialize XPCOM's module info table  NSGetStaticModuleInfo = apprunner_getModuleInfo;#endif        rv = NS_InitEmbedding(nsnull, nsnull);    if (NS_FAILED(rv))      return (-1);	profile_dir = (char *)alloca(strlen(getenv("HOME")) + strlen("/.ph") + 1);	sprintf(profile_dir, "%s/.ph", getenv("HOME"));    rv = StartupProfile(profile_dir, "mozilla");    if (NS_FAILED(rv))      	NS_WARNING("Warning: Failed to start up profiles.\n");        nsCOMPtr<nsIAppShell> appShell;    appShell = do_CreateInstance(kAppShellCID);    if (!appShell) 	{	    NS_WARNING("Failed to create appshell in EmbedPrivate::PushStartup!\n");    	return (-1);    }    nsIAppShell * sAppShell = appShell.get();    NS_ADDREF(sAppShell);    sAppShell->Create(0, nsnull);    sAppShell->Spinup();	return (0);}