From 8c8180815b72232b4e2dcbf69a38458d66c82179 Mon Sep 17 00:00:00 2001
From: Jack251970 <1160210343@qq.com>
Date: Sat, 14 Jun 2025 16:03:41 +0800
Subject: [PATCH] Change default value
---
Flow.Launcher.Plugin/Interfaces/IPublicAPI.cs | 4 ++--
Flow.Launcher/PublicAPIInstance.cs | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/Flow.Launcher.Plugin/Interfaces/IPublicAPI.cs b/Flow.Launcher.Plugin/Interfaces/IPublicAPI.cs
index 484e6d09a..2f07b6868 100644
--- a/Flow.Launcher.Plugin/Interfaces/IPublicAPI.cs
+++ b/Flow.Launcher.Plugin/Interfaces/IPublicAPI.cs
@@ -599,7 +599,7 @@ namespace Flow.Launcher.Plugin
/// Whether to use shell to execute the process
/// Verb to use when starting the process, e.g. "runas" for elevated permissions. If not specified, no verb will be used.
/// Whether process is started successfully
- public bool StartProcess(string filePath, string workingDirectory = "", string arguments = "", bool useShellExecute = true, string verb = "");
+ public bool StartProcess(string filePath, string workingDirectory = "", string arguments = "", bool useShellExecute = false, string verb = "");
///
/// Start a process with the given file path and arguments
@@ -613,6 +613,6 @@ namespace Flow.Launcher.Plugin
/// Whether to use shell to execute the process
/// Verb to use when starting the process, e.g. "runas" for elevated permissions. If not specified, no verb will be used.
/// Whether process is started successfully
- public bool StartProcess(string filePath, string workingDirectory = "", Collection argumentList = null, bool useShellExecute = true, string verb = "");
+ public bool StartProcess(string filePath, string workingDirectory = "", Collection argumentList = null, bool useShellExecute = false, string verb = "");
}
}
diff --git a/Flow.Launcher/PublicAPIInstance.cs b/Flow.Launcher/PublicAPIInstance.cs
index 9f32ffadc..d2ac75c66 100644
--- a/Flow.Launcher/PublicAPIInstance.cs
+++ b/Flow.Launcher/PublicAPIInstance.cs
@@ -582,7 +582,7 @@ namespace Flow.Launcher
public Task StopwatchLogInfoAsync(string className, string message, Func action, [CallerMemberName] string methodName = "") =>
Stopwatch.InfoAsync(className, message, action, methodName);
- public bool StartProcess(string filePath, string workingDirectory = "", string arguments = "", bool useShellExecute = true, string verb = "")
+ public bool StartProcess(string filePath, string workingDirectory = "", string arguments = "", bool useShellExecute = false, string verb = "")
{
try
{
@@ -624,7 +624,7 @@ namespace Flow.Launcher
}
}
- public bool StartProcess(string filePath, string workingDirectory = "", Collection argumentList = null, bool useShellExecute = true, string verb = "") =>
+ public bool StartProcess(string filePath, string workingDirectory = "", Collection argumentList = null, bool useShellExecute = false, string verb = "") =>
StartProcess(filePath, workingDirectory, JoinArgumentList(argumentList), useShellExecute, verb);
private static string AddDoubleQuotes(string arg)