about:profiles - fix "Launch profile in new browser" (added "-no-remote" for Windows)

This commit is contained in:
janekptacijarabaci 2018-07-25 07:27:18 +02:00 committed by Roy Tam
commit 54a727b3cb

View file

@ -1020,8 +1020,13 @@ nsAppStartup::CreateInstanceWithProfile(nsIToolkitProfile* aProfile)
return rv;
}
#if defined(XP_WIN)
const char *args[] = { "-no-remote", "-P", profileName.get() };
rv = process->Run(false, args, 3);
#else
const char *args[] = { "-P", profileName.get() };
rv = process->Run(false, args, 2);
#endif
if (NS_WARN_IF(NS_FAILED(rv))) {
return rv;
}