File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed
Plugins/Flow.Launcher.Plugin.Shell Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -204,7 +204,7 @@ private ProcessStartInfo PrepareProcessStartInfo(string command, bool runAsAdmin
204
204
info . FileName = "cmd.exe" ;
205
205
info . Arguments = $ "{ ( _settings . LeaveShellOpen ? "/k" : "/c" ) } { command } ";
206
206
207
- //// Use info.Arguments instead of info.ArgumentList to enable user better control over the argument they are writing.
207
+ //// Use info.Arguments instead of info.ArgumentList to enable users better control over the arguments they are writing.
208
208
//// Previous code using ArgumentList, commands needed to be seperated correctly:
209
209
//// Incorrect:
210
210
// info.ArgumentList.Add(_settings.LeaveShellOpen ? "/k" : "/c");
@@ -238,10 +238,7 @@ private ProcessStartInfo PrepareProcessStartInfo(string command, bool runAsAdmin
238
238
239
239
case Shell . RunCommand :
240
240
{
241
- var parts = command . Split ( new [ ]
242
- {
243
- ' '
244
- } , 2 ) ;
241
+ var parts = command . Split ( new [ ] { ' ' } , 2 ) ;
245
242
if ( parts . Length == 2 )
246
243
{
247
244
var filename = parts [ 0 ] ;
You can’t perform that action at this time.
0 commit comments