diff options
author | sr55 <[email protected]> | 2018-12-15 21:14:47 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2018-12-15 21:14:47 +0000 |
commit | 88b0c6e75e0200bba533260eab7cd832ed846659 (patch) | |
tree | fcbb67179fb7885369658d552b393ebac20cfd85 | |
parent | 6e747a14f5c5bef72490a19c93914f9e71cd9b22 (diff) |
WinGui: Try to work-around broken shell extensions breaking the Shutdown feature.
-rw-r--r-- | win/CS/HandBrakeWPF/Services/PrePostActionService.cs | 4 |
1 files changed, 3 insertions, 1 deletions
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<string>(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);
|