summaryrefslogtreecommitdiffstats
path: root/toolkit/components/startup/nsAppStartup.cpp
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 /toolkit/components/startup/nsAppStartup.cpp
parentdd234f025a2154553de23d4514da6669ef8f2851 (diff)
downloadUXP-45cdc5db38a02ac068e64d3607484e928f88f3c0.tar
UXP-45cdc5db38a02ac068e64d3607484e928f88f3c0.tar.gz
UXP-45cdc5db38a02ac068e64d3607484e928f88f3c0.tar.lz
UXP-45cdc5db38a02ac068e64d3607484e928f88f3c0.tar.xz
UXP-45cdc5db38a02ac068e64d3607484e928f88f3c0.zip
about:profiles - fix "Launch profile in new browser" (added "-no-remote" for Windows)
Diffstat (limited to 'toolkit/components/startup/nsAppStartup.cpp')
-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 fde00d1db..391389605 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;
}