We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a065179 commit 3bd4ca4Copy full SHA for 3bd4ca4
Plugins/Flow.Launcher.Plugin.Sys/Main.cs
@@ -269,12 +269,7 @@ private List<Result> Commands()
269
IcoPath = "Images\\hibernate.png",
270
Action= c =>
271
{
272
- var info = ShellCommand.SetProcessStartInfo("shutdown", arguments:"/h");
273
- info.WindowStyle = ProcessWindowStyle.Hidden;
274
- info.UseShellExecute = true;
275
-
276
- ShellCommand.Execute(info);
277
+ PInvoke.SetSuspendState(true, false, false);
278
return true;
279
}
280
},
0 commit comments