]> granicus.if.org Git - handbrake/commitdiff
WinGui: Try to work-around broken shell extensions breaking the Shutdown feature.
authorsr55 <sr55.hb@outlook.com>
Sat, 15 Dec 2018 21:14:47 +0000 (21:14 +0000)
committersr55 <sr55.hb@outlook.com>
Sat, 15 Dec 2018 21:14:47 +0000 (21:14 +0000)
win/CS/HandBrakeWPF/Services/PrePostActionService.cs

index 1856ca4f38f95021a8ed87e3235f85fc80977440..f0d9a71256759091f034f5d927d0a5da27fd1244 100644 (file)
@@ -161,7 +161,9 @@ namespace HandBrakeWPF.Services
                 switch (this.userSettingService.GetUserSetting<string>(UserSettingConstants.WhenCompleteAction))\r
                 {\r
                     case "Shutdown":\r
-                        Process.Start("Shutdown", "-s -t 60");\r
+                        ProcessStartInfo shutdown = new ProcessStartInfo("Shutdown", "-s -t 60");\r
+                        shutdown.UseShellExecute = false;\r
+                        Process.Start(shutdown);\r
                         break;\r
                     case "Log off":\r
                         Win32.ExitWindowsEx(0, 0);\r