From 581e84228ca446304eecb0460589f4ccc23abd6f Mon Sep 17 00:00:00 2001 From: Hongtao Zhang Date: Wed, 8 Dec 2021 21:06:52 -0600 Subject: [PATCH] Revert "move url before options" This reverts commit 13ccd582cee87c4a5b06aabfa01164c0ed7b541c. --- Flow.Launcher.Plugin/SharedCommands/SearchWeb.cs | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/Flow.Launcher.Plugin/SharedCommands/SearchWeb.cs b/Flow.Launcher.Plugin/SharedCommands/SearchWeb.cs index a744864da..6c4ac8ebf 100644 --- a/Flow.Launcher.Plugin/SharedCommands/SearchWeb.cs +++ b/Flow.Launcher.Plugin/SharedCommands/SearchWeb.cs @@ -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 }); } }