fix unintended use of direct startInfo.Arguments in context menu

This commit is contained in:
Kevin Zhang 2021-07-01 16:27:41 +08:00
parent 3bdc82a47f
commit cc743c1efc

View file

@ -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