Revert "move url before options"

This reverts commit 13ccd582ce.
This commit is contained in:
Hongtao Zhang 2021-12-08 21:06:52 -06:00
parent 13ccd582ce
commit 581e84228c

View file

@ -49,7 +49,7 @@ namespace Flow.Launcher.Plugin.SharedCommands
var browser = string.IsNullOrEmpty(browserExecutableName) ? "chrome" : browserPath;
// Internet Explorer will open url in new browser window, and does not take the --new-window parameter
var browserArguements = (browserExecutableName == "iexplore.exe" ? "" : url + " --new-window ") + (inPrivate ? $"{privateArg}" : "");
var browserArguements = (browserExecutableName == "iexplore.exe" ? "" : "--new-window ") + (inPrivate ? $"{privateArg} " : "") + url;
var psi = new ProcessStartInfo
{
@ -66,8 +66,7 @@ namespace Flow.Launcher.Plugin.SharedCommands
{
Process.Start(new ProcessStartInfo
{
FileName = url,
UseShellExecute = true
FileName = url, UseShellExecute = true
});
}
}
@ -94,7 +93,7 @@ namespace Flow.Launcher.Plugin.SharedCommands
if (!string.IsNullOrEmpty(browserPath))
{
psi.FileName = browserPath;
psi.Arguments = url + (inPrivate ? $" {privateArg}" : "");
psi.Arguments = (inPrivate ? $"{privateArg} " : "") + url;
}
else
{
@ -108,8 +107,7 @@ namespace Flow.Launcher.Plugin.SharedCommands
{
Process.Start(new ProcessStartInfo
{
FileName = url,
UseShellExecute = true
FileName = url, UseShellExecute = true
});
}
}