summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjanekptacijarabaci <janekptacijarabaci@seznam.cz>2018-07-25 07:27:18 +0200
committerjanekptacijarabaci <janekptacijarabaci@seznam.cz>2018-07-25 07:27:18 +0200
commit45cdc5db38a02ac068e64d3607484e928f88f3c0 (patch)
tree3ee8ba8d492cab4c7170a4f9eed5f895dd134887
parentdd234f025a2154553de23d4514da6669ef8f2851 (diff)
downloaduxp-45cdc5db38a02ac068e64d3607484e928f88f3c0.tar.gz
about:profiles - fix "Launch profile in new browser" (added "-no-remote" for Windows)
-rw-r--r--toolkit/components/startup/nsAppStartup.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/toolkit/components/startup/nsAppStartup.cpp b/toolkit/components/startup/nsAppStartup.cpp
index fde00d1dbc..3913896055 100644
--- a/toolkit/components/startup/nsAppStartup.cpp
+++ b/toolkit/components/startup/nsAppStartup.cpp
@@ -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;
}