mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Change default value
This commit is contained in:
parent
935101c6e3
commit
8c8180815b
2 changed files with 4 additions and 4 deletions
|
|
@ -599,7 +599,7 @@ namespace Flow.Launcher.Plugin
|
|||
/// <param name="useShellExecute">Whether to use shell to execute the process</param>
|
||||
/// <param name="verb">Verb to use when starting the process, e.g. "runas" for elevated permissions. If not specified, no verb will be used.</param>
|
||||
/// <returns>Whether process is started successfully</returns>
|
||||
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 = "");
|
||||
|
||||
/// <summary>
|
||||
/// Start a process with the given file path and arguments
|
||||
|
|
@ -613,6 +613,6 @@ namespace Flow.Launcher.Plugin
|
|||
/// <param name="useShellExecute">Whether to use shell to execute the process</param>
|
||||
/// <param name="verb">Verb to use when starting the process, e.g. "runas" for elevated permissions. If not specified, no verb will be used.</param>
|
||||
/// <returns>Whether process is started successfully</returns>
|
||||
public bool StartProcess(string filePath, string workingDirectory = "", Collection<string> argumentList = null, bool useShellExecute = true, string verb = "");
|
||||
public bool StartProcess(string filePath, string workingDirectory = "", Collection<string> argumentList = null, bool useShellExecute = false, string verb = "");
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -582,7 +582,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 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<string> argumentList = null, bool useShellExecute = true, string verb = "") =>
|
||||
public bool StartProcess(string filePath, string workingDirectory = "", Collection<string> argumentList = null, bool useShellExecute = false, string verb = "") =>
|
||||
StartProcess(filePath, workingDirectory, JoinArgumentList(argumentList), useShellExecute, verb);
|
||||
|
||||
private static string AddDoubleQuotes(string arg)
|
||||
|
|
|
|||
Loading…
Reference in a new issue