@@ -86,7 +86,7 @@ public List<Result> Query(Query query)
86
86
IcoPath = Image ,
87
87
Action = c =>
88
88
{
89
- Execute ( Process . Start , PrepareProcessStartInfo ( m ) ) ;
89
+ Execute ( Process . Start , PrepareProcessStartInfo ( m , c . SpecialKeyState . CtrlPressed ) ) ;
90
90
return true ;
91
91
}
92
92
} ) ) ;
@@ -182,7 +182,7 @@ private ProcessStartInfo PrepareProcessStartInfo(string command, bool runAsAdmin
182
182
if ( _settings . Shell == Shell . Cmd )
183
183
{
184
184
var arguments = _settings . LeaveShellOpen ? $ "/k \" { command } \" " : $ "/c \" { command } \" & pause";
185
-
185
+
186
186
info = ShellCommand . SetProcessStartInfo ( "cmd.exe" , workingDirectory , arguments , runAsAdministratorArg ) ;
187
187
}
188
188
else if ( _settings . Shell == Shell . Powershell )
@@ -232,19 +232,19 @@ private ProcessStartInfo PrepareProcessStartInfo(string command, bool runAsAdmin
232
232
return info ;
233
233
}
234
234
235
- private void Execute ( Func < ProcessStartInfo , Process > startProcess , ProcessStartInfo info )
235
+ private void Execute ( Func < ProcessStartInfo , Process > startProcess , ProcessStartInfo info )
236
236
{
237
237
try
238
238
{
239
- startProcess ( info ) ;
239
+ startProcess ( info ) ;
240
240
}
241
241
catch ( FileNotFoundException e )
242
242
{
243
243
var name = "Plugin: Shell" ;
244
244
var message = $ "Command not found: { e . Message } ";
245
245
context . API . ShowMsg ( name , message ) ;
246
246
}
247
- catch ( Win32Exception e )
247
+ catch ( Win32Exception e )
248
248
{
249
249
var name = "Plugin: Shell" ;
250
250
var message = $ "Error running the command: { e . Message } ";
0 commit comments