diff --git a/Plugins/Flow.Launcher.Plugin.Sys/Images/restart_advanced.png b/Plugins/Flow.Launcher.Plugin.Sys/Images/restart_advanced.png
new file mode 100644
index 000000000..feabbefa1
Binary files /dev/null and b/Plugins/Flow.Launcher.Plugin.Sys/Images/restart_advanced.png differ
diff --git a/Plugins/Flow.Launcher.Plugin.Sys/Languages/en.xaml b/Plugins/Flow.Launcher.Plugin.Sys/Languages/en.xaml
index 45ab9a304..46dcffdbf 100644
--- a/Plugins/Flow.Launcher.Plugin.Sys/Languages/en.xaml
+++ b/Plugins/Flow.Launcher.Plugin.Sys/Languages/en.xaml
@@ -8,6 +8,7 @@
Shutdown Computer
Restart Computer
+ Restart the computer with Advanced Boot Options for Safe and Debugging modes, as well as other options
Log off
Lock this computer
Close Flow Launcher
@@ -29,6 +30,7 @@
Reloaded all applicable plugin data
Are you sure you want to shut the computer down?
Are you sure you want to restart the computer?
+ Are you sure you want to restart the computer with Advanced Boot Options?
System Commands
Provides System related commands. e.g. shutdown, lock, settings etc.
diff --git a/Plugins/Flow.Launcher.Plugin.Sys/Main.cs b/Plugins/Flow.Launcher.Plugin.Sys/Main.cs
index 1a23e6464..ba5de8a89 100644
--- a/Plugins/Flow.Launcher.Plugin.Sys/Main.cs
+++ b/Plugins/Flow.Launcher.Plugin.Sys/Main.cs
@@ -131,6 +131,24 @@ namespace Flow.Launcher.Plugin.Sys
}
},
new Result
+ {
+ Title = "Restart With Advanced Boot Options",
+ SubTitle = context.API.GetTranslation("flowlauncher_plugin_sys_restart_advanced"),
+ IcoPath = "Images\\restart_advanced.png",
+ Action = c =>
+ {
+ var result = MessageBox.Show(
+ context.API.GetTranslation("flowlauncher_plugin_sys_dlgtext_restart_computer_advanced"),
+ context.API.GetTranslation("flowlauncher_plugin_sys_restart_computer"),
+ MessageBoxButton.YesNo, MessageBoxImage.Warning);
+
+ if (result == MessageBoxResult.Yes)
+ Process.Start("shutdown", "/r /o /t 0");
+
+ return true;
+ }
+ },
+ new Result
{
Title = "Log Off",
SubTitle = context.API.GetTranslation("flowlauncher_plugin_sys_log_off"),
diff --git a/Plugins/Flow.Launcher.Plugin.Sys/plugin.json b/Plugins/Flow.Launcher.Plugin.Sys/plugin.json
index b47aa33a4..1bfcd92a5 100644
--- a/Plugins/Flow.Launcher.Plugin.Sys/plugin.json
+++ b/Plugins/Flow.Launcher.Plugin.Sys/plugin.json
@@ -4,7 +4,7 @@
"Name": "System Commands",
"Description": "Provide System related commands. e.g. shutdown,lock, setting etc.",
"Author": "qianlifeng",
- "Version": "1.3.2",
+ "Version": "1.4.0",
"Language": "csharp",
"Website": "https://github.com/Flow-Launcher/Flow.Launcher",
"ExecuteFileName": "Flow.Launcher.Plugin.Sys.dll",