Skip to content

Commit d6ec4b5

Browse files
authored
Merge pull request #538 from taooceros/ContextMenuNullCheck
fix unintended use of direct startInfo.Arguments in context menu
2 parents 71a6cd1 + cc743c1 commit d6ec4b5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Flow.Launcher.Core/Plugin/PythonPlugin.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ protected override string ExecuteContextMenu(Result selectedResult)
6161
{
6262
Method = "context_menu", Parameters = new object[] {selectedResult.ContextData},
6363
};
64-
_startInfo.Arguments = $"-B \"{context.CurrentPluginMetadata.ExecuteFilePath}\" \"{request}\"";
64+
_startInfo.ArgumentList[2] = request.ToString();
6565
_startInfo.WorkingDirectory = context.CurrentPluginMetadata.PluginDirectory;
6666

6767
// TODO: Async Action

0 commit comments

Comments
 (0)