From 88b0c6e75e0200bba533260eab7cd832ed846659 Mon Sep 17 00:00:00 2001 From: sr55 Date: Sat, 15 Dec 2018 21:14:47 +0000 Subject: WinGui: Try to work-around broken shell extensions breaking the Shutdown feature. --- win/CS/HandBrakeWPF/Services/PrePostActionService.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'win/CS/HandBrakeWPF/Services') diff --git a/win/CS/HandBrakeWPF/Services/PrePostActionService.cs b/win/CS/HandBrakeWPF/Services/PrePostActionService.cs index 1856ca4f3..f0d9a7125 100644 --- a/win/CS/HandBrakeWPF/Services/PrePostActionService.cs +++ b/win/CS/HandBrakeWPF/Services/PrePostActionService.cs @@ -161,7 +161,9 @@ namespace HandBrakeWPF.Services switch (this.userSettingService.GetUserSetting(UserSettingConstants.WhenCompleteAction)) { case "Shutdown": - Process.Start("Shutdown", "-s -t 60"); + ProcessStartInfo shutdown = new ProcessStartInfo("Shutdown", "-s -t 60"); + shutdown.UseShellExecute = false; + Process.Start(shutdown); break; case "Log off": Win32.ExitWindowsEx(0, 0); -- cgit v1.2.3