From f9b2be1fc7119055a02fcc5444fe7115567c485b Mon Sep 17 00:00:00 2001
From: Jack251970 <1160210343@qq.com>
Date: Wed, 11 Jun 2025 20:01:37 +0800
Subject: [PATCH] Let work directory can be empty
---
Flow.Launcher.Plugin/Interfaces/IPublicAPI.cs | 2 +-
Flow.Launcher/PublicAPIInstance.cs | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/Flow.Launcher.Plugin/Interfaces/IPublicAPI.cs b/Flow.Launcher.Plugin/Interfaces/IPublicAPI.cs
index 7b0e1dc8c..a413fe98e 100644
--- a/Flow.Launcher.Plugin/Interfaces/IPublicAPI.cs
+++ b/Flow.Launcher.Plugin/Interfaces/IPublicAPI.cs
@@ -591,6 +591,6 @@ namespace Flow.Launcher.Plugin
/// Working directory. If not specified, the current directory will be used
/// Optional arguments to pass to the process. If not specified, no arguments will be passed
/// Whether to run the process as administrator
- public void StartProcess(string filePath, string workingDirectory, string arguments = "", bool runAsAdmin = false);
+ public void StartProcess(string filePath, string workingDirectory = "", string arguments = "", bool runAsAdmin = false);
}
}
diff --git a/Flow.Launcher/PublicAPIInstance.cs b/Flow.Launcher/PublicAPIInstance.cs
index 2f29e098e..e76ea1a5a 100644
--- a/Flow.Launcher/PublicAPIInstance.cs
+++ b/Flow.Launcher/PublicAPIInstance.cs
@@ -577,7 +577,7 @@ namespace Flow.Launcher
public Task StopwatchLogInfoAsync(string className, string message, Func 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
{