File tree Expand file tree Collapse file tree 1 file changed +9
-5
lines changed
Flow.Launcher.Core/Plugin Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Original file line number Diff line number Diff line change 1
- using System ;
2
- using System . Diagnostics ;
1
+ using System . Diagnostics ;
3
2
using System . IO ;
4
3
using System . Threading ;
5
4
using System . Threading . Tasks ;
@@ -22,18 +21,23 @@ public ExecutablePlugin(string filename)
22
21
RedirectStandardOutput = true ,
23
22
RedirectStandardError = true
24
23
} ;
24
+
25
+ // required initialisation for below request calls
26
+ _startInfo . ArgumentList . Add ( string . Empty ) ;
25
27
}
26
28
27
29
protected override Task < Stream > RequestAsync ( JsonRPCRequestModel request , CancellationToken token = default )
28
30
{
29
- _startInfo . Arguments = $ "\" { request } \" ";
31
+ // since this is not static, request strings will build up in ArgumentList if index is not specified
32
+ _startInfo . ArgumentList [ 0 ] = request . ToString ( ) ;
30
33
return ExecuteAsync ( _startInfo , token ) ;
31
34
}
32
35
33
36
protected override string Request ( JsonRPCRequestModel rpcRequest , CancellationToken token = default )
34
37
{
35
- _startInfo . Arguments = $ "\" { rpcRequest } \" ";
38
+ // since this is not static, request strings will build up in ArgumentList if index is not specified
39
+ _startInfo . ArgumentList [ 0 ] = rpcRequest . ToString ( ) ;
36
40
return Execute ( _startInfo ) ;
37
41
}
38
42
}
39
- }
43
+ }
You can’t perform that action at this time.
0 commit comments