From b4f06caef53a308a3cf5de89fd3f0ab174d6ce86 Mon Sep 17 00:00:00 2001 From: Kevin Zhang Date: Thu, 25 Nov 2021 15:54:00 -0600 Subject: [PATCH] revert method removal --- Flow.Launcher.Plugin/SharedCommands/ShellCommand.cs | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/Flow.Launcher.Plugin/SharedCommands/ShellCommand.cs b/Flow.Launcher.Plugin/SharedCommands/ShellCommand.cs index 8a8c5793d..c5d43a3d9 100644 --- a/Flow.Launcher.Plugin/SharedCommands/ShellCommand.cs +++ b/Flow.Launcher.Plugin/SharedCommands/ShellCommand.cs @@ -59,5 +59,18 @@ namespace Flow.Launcher.Plugin.SharedCommands GetWindowText(hwnd, sb, sb.Capacity); return sb.ToString(); } + + public static ProcessStartInfo SetProcessStartInfo(this string fileName, string workingDirectory = "", string arguments = "", string verb = "") + { + var info = new ProcessStartInfo + { + FileName = fileName, + WorkingDirectory = workingDirectory, + Arguments = arguments, + Verb = verb + }; + + return info; + } } }