Let work directory can be empty

This commit is contained in:
Jack251970 2025-06-11 20:01:37 +08:00
parent d13901bb9d
commit f9b2be1fc7
2 changed files with 2 additions and 2 deletions

View file

@ -591,6 +591,6 @@ namespace Flow.Launcher.Plugin
/// <param name="workingDirectory">Working directory. If not specified, the current directory will be used</param>
/// <param name="arguments">Optional arguments to pass to the process. If not specified, no arguments will be passed</param>
/// <param name="runAsAdmin">Whether to run the process as administrator</param>
public void StartProcess(string filePath, string workingDirectory, string arguments = "", bool runAsAdmin = false);
public void StartProcess(string filePath, string workingDirectory = "", string arguments = "", bool runAsAdmin = false);
}
}

View file

@ -577,7 +577,7 @@ namespace Flow.Launcher
public Task<long> StopwatchLogInfoAsync(string className, string message, Func<Task> action, [CallerMemberName] string methodName = "") =>
Stopwatch.InfoAsync(className, message, action, methodName);
public void StartProcess(string filePath, string workingDirectory, string arguments = "", bool runAsAdmin = false)
public void StartProcess(string filePath, string workingDirectory = "", string arguments = "", bool runAsAdmin = false)
{
try
{