For Unix, create component.reg in cwd, not the specified program dir.

[nsbeta3+ b=47721; r=dveditz]
This commit is contained in:
sgehani%netscape.com 2000-08-10 23:50:32 +00:00
parent e38da88c9f
commit e300a01140

View File

@ -132,10 +132,7 @@ PR_PUBLIC_API(nsresult) XPI_Init(
#elif defined(XP_UNIX)
nsCOMPtr<nsILocalFile> file;
NS_NewLocalFile(aProgramDir, PR_TRUE, getter_AddRefs(file));
rv = NS_InitXPCOM(&gServiceMgr, file);
rv = NS_InitXPCOM(&gServiceMgr, nsnull);
char cwd[1024];
char compDirPath[1024];