Workaround for multiple profiles bug.

git-svn-id: svn://10.0.0.236/branches/JAVADEV_RTM_20001102@88413 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
edburns%acm.org
2001-03-02 23:15:40 +00:00
parent d186cf20f9
commit e88efacaa6
2 changed files with 14 additions and 6 deletions

View File

@@ -504,10 +504,18 @@ void DoMozInitialization(WebShellInitContext * initContext)
::util_ThrowExceptionToJava(env, "Can't get the profile manager.");
return;
}
char *argv[1];
char *argv[3];
argv[0] = strdup(gBinDir);
rv = cmdLine->Initialize(1, argv);
// PENDING(edburns): fix for 70656. Really we should have a way
// for the embedding app to specify which profile to use.
argv[1] = strdup("-p");
argv[2] = strdup("default");
printf("debug: edburns: argv[1]: %s argv[2]: %s\n", argv[1],
argv[2]);
rv = cmdLine->Initialize(3, argv);
nsCRT::free(argv[0]);
nsCRT::free(argv[1]);
nsCRT::free(argv[2]);
if (NS_FAILED(rv)) {
::util_ThrowExceptionToJava(env, "Can't initialize nsICmdLineService.");
return;