diff --git a/Wox.Plugin.SystemPlugins/Sys.cs b/Wox.Plugin.SystemPlugins/Sys.cs index 9a9d28d805..fd85057f2e 100644 --- a/Wox.Plugin.SystemPlugins/Sys.cs +++ b/Wox.Plugin.SystemPlugins/Sys.cs @@ -86,6 +86,24 @@ namespace Wox.Plugin.SystemPlugins } }); 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", SubTitle = "Tweak this app", diff --git a/Wox/Images/restart.png b/Wox/Images/restart.png new file mode 100644 index 0000000000..7230a66fcf Binary files /dev/null and b/Wox/Images/restart.png differ