Skip to content

Commit 82d4e82

Browse files
authored
Change shellexecute for command without argument
1 parent 6072db5 commit 82d4e82

File tree

1 file changed

+2
-1
lines changed
  • Plugins/Flow.Launcher.Plugin.Shell

1 file changed

+2
-1
lines changed

Plugins/Flow.Launcher.Plugin.Shell/Main.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,6 @@ private ProcessStartInfo PrepareProcessStartInfo(string command, bool runAsAdmin
264264
var arguments = parts[1];
265265
info.FileName = filename;
266266
info.ArgumentList.Add(arguments);
267-
info.UseShellExecute = true;
268267
}
269268
else
270269
{
@@ -276,6 +275,8 @@ private ProcessStartInfo PrepareProcessStartInfo(string command, bool runAsAdmin
276275
info.FileName = command;
277276
}
278277

278+
info.UseShellExecute = true;
279+
279280
break;
280281
}
281282
default:

0 commit comments

Comments
 (0)