From cc743c1efcbe4b9cf0bb1365c5c820d28331b0de Mon Sep 17 00:00:00 2001 From: Kevin Zhang Date: Thu, 1 Jul 2021 16:27:41 +0800 Subject: [PATCH] fix unintended use of direct startInfo.Arguments in context menu --- Flow.Launcher.Core/Plugin/PythonPlugin.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Flow.Launcher.Core/Plugin/PythonPlugin.cs b/Flow.Launcher.Core/Plugin/PythonPlugin.cs index 16d84136f..5d2d8d51d 100644 --- a/Flow.Launcher.Core/Plugin/PythonPlugin.cs +++ b/Flow.Launcher.Core/Plugin/PythonPlugin.cs @@ -61,7 +61,7 @@ namespace Flow.Launcher.Core.Plugin { Method = "context_menu", Parameters = new object[] {selectedResult.ContextData}, }; - _startInfo.Arguments = $"-B \"{context.CurrentPluginMetadata.ExecuteFilePath}\" \"{request}\""; + _startInfo.ArgumentList[2] = request.ToString(); _startInfo.WorkingDirectory = context.CurrentPluginMetadata.PluginDirectory; // TODO: Async Action