Merge pull request #538 from taooceros/ContextMenuNullCheck

fix unintended use of direct startInfo.Arguments in context menu
This commit is contained in:
Jeremy Wu 2021-07-01 19:44:01 +10:00 committed by GitHub
commit d6ec4b51d5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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