summaryrefslogtreecommitdiffstats
path: root/toolkit
diff options
context:
space:
mode:
authorMoonchild <mcwerewolf@gmail.com>2018-07-25 11:41:05 +0200
committerGitHub <noreply@github.com>2018-07-25 11:41:05 +0200
commitaab5ccc419bb90972e41565a1664653c905bb816 (patch)
tree589d4aac36920641ece9ebbc0acd7de0aad39930 /toolkit
parented2287aef19dc28ef47d41c2fca60f896f609e05 (diff)
parent45cdc5db38a02ac068e64d3607484e928f88f3c0 (diff)
downloadUXP-aab5ccc419bb90972e41565a1664653c905bb816.tar
UXP-aab5ccc419bb90972e41565a1664653c905bb816.tar.gz
UXP-aab5ccc419bb90972e41565a1664653c905bb816.tar.lz
UXP-aab5ccc419bb90972e41565a1664653c905bb816.tar.xz
UXP-aab5ccc419bb90972e41565a1664653c905bb816.zip
Merge pull request #674 from janekptacijarabaci/toolkit_startup_instance-with-profile_1
about:profiles - fix "Launch profile in new browser" (added "-no-remote" for Windows)
Diffstat (limited to 'toolkit')
-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;
}