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
204204 info . FileName = "cmd.exe" ;
205205 info . Arguments = $ "{ ( _settings . LeaveShellOpen ? "/k" : "/c" ) } { command } ";
206206
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.
208208 //// Previous code using ArgumentList, commands needed to be seperated correctly:
209209 //// Incorrect:
210210 // info.ArgumentList.Add(_settings.LeaveShellOpen ? "/k" : "/c");
@@ -238,10 +238,7 @@ private ProcessStartInfo PrepareProcessStartInfo(string command, bool runAsAdmin
238238
239239 case Shell . RunCommand :
240240 {
241- var parts = command . Split ( new [ ]
242- {
243- ' '
244- } , 2 ) ;
241+ var parts = command . Split ( new [ ] { ' ' } , 2 ) ;
245242 if ( parts . Length == 2 )
246243 {
247244 var filename = parts [ 0 ] ;
You can’t perform that action at this time.
0 commit comments