From: sr55 Date: Sat, 15 Dec 2018 21:14:47 +0000 (+0000) Subject: WinGui: Try to work-around broken shell extensions breaking the Shutdown feature. X-Git-Tag: 1.2.0~3 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=88b0c6e75e0200bba533260eab7cd832ed846659;p=handbrake WinGui: Try to work-around broken shell extensions breaking the Shutdown feature. --- 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);