Skip to content

Commit 2d12561

Browse files
Merge pull request #2665 from Flow-Launcher/taooceros-patch-1
Change shellexecute for command without argument
2 parents 88b09c5 + 82d4e82 commit 2d12561

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)