mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Add restart wox command into sys plugin.
This commit is contained in:
parent
67ac5a9c6a
commit
3d73dc2fb7
2 changed files with 18 additions and 0 deletions
|
|
@ -86,6 +86,24 @@ namespace Wox.Plugin.SystemPlugins
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
availableResults.Add(new Result
|
availableResults.Add(new Result
|
||||||
|
{
|
||||||
|
Title = "Restart Wox",
|
||||||
|
SubTitle = "Restart Wox",
|
||||||
|
Score = 110,
|
||||||
|
IcoPath = "Images\\restart.png",
|
||||||
|
Action = (c) =>
|
||||||
|
{
|
||||||
|
ProcessStartInfo Info = new ProcessStartInfo();
|
||||||
|
Info.Arguments = "/C ping 127.0.0.1 -n 1 && \"" + Application.ExecutablePath + "\"";
|
||||||
|
Info.WindowStyle = ProcessWindowStyle.Hidden;
|
||||||
|
Info.CreateNoWindow = true;
|
||||||
|
Info.FileName = "cmd.exe";
|
||||||
|
Process.Start(Info);
|
||||||
|
context.CloseApp();
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
availableResults.Add(new Result
|
||||||
{
|
{
|
||||||
Title = "Setting",
|
Title = "Setting",
|
||||||
SubTitle = "Tweak this app",
|
SubTitle = "Tweak this app",
|
||||||
|
|
|
||||||
BIN
Wox/Images/restart.png
Normal file
BIN
Wox/Images/restart.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.3 KiB |
Loading…
Reference in a new issue