revert method removal

This commit is contained in:
Kevin Zhang 2021-11-25 15:54:00 -06:00
parent 16c30e9803
commit b4f06caef5

View file

@ -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;
}
}
}