From 13ccd582cee87c4a5b06aabfa01164c0ed7b541c Mon Sep 17 00:00:00 2001 From: Hongtao Zhang Date: Wed, 8 Dec 2021 21:06:52 -0600 Subject: [PATCH] move url before options --- Flow.Launcher.Plugin/SharedCommands/SearchWeb.cs | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/Flow.Launcher.Plugin/SharedCommands/SearchWeb.cs b/Flow.Launcher.Plugin/SharedCommands/SearchWeb.cs index 6c4ac8ebf..a744864da 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" ? "" : "--new-window ") + (inPrivate ? $"{privateArg} " : "") + url; + var browserArguements = (browserExecutableName == "iexplore.exe" ? "" : url + " --new-window ") + (inPrivate ? $"{privateArg}" : ""); var psi = new ProcessStartInfo { @@ -66,7 +66,8 @@ namespace Flow.Launcher.Plugin.SharedCommands { Process.Start(new ProcessStartInfo { - FileName = url, UseShellExecute = true + FileName = url, + UseShellExecute = true }); } } @@ -93,7 +94,7 @@ namespace Flow.Launcher.Plugin.SharedCommands if (!string.IsNullOrEmpty(browserPath)) { psi.FileName = browserPath; - psi.Arguments = (inPrivate ? $"{privateArg} " : "") + url; + psi.Arguments = url + (inPrivate ? $" {privateArg}" : ""); } else { @@ -107,7 +108,8 @@ namespace Flow.Launcher.Plugin.SharedCommands { Process.Start(new ProcessStartInfo { - FileName = url, UseShellExecute = true + FileName = url, + UseShellExecute = true }); } }