Skip to content

Commit

Permalink
import from UXP: about:profiles - fix "Launch profile in new browser"…
Browse files Browse the repository at this point in the history
… (added "-no-remote" for Windows) (54a727b3)
  • Loading branch information
roytam1 committed May 8, 2022
1 parent ccbcbcc commit a014766
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions toolkit/components/startup/nsAppStartup.cpp
Expand Up @@ -1023,8 +1023,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;
}
Expand Down

0 comments on commit a014766

Please sign in to comment.