summaryrefslogtreecommitdiffstats
path: root/win/CS/HandBrakeWPF/Services/PrePostActionService.cs
diff options
context:
space:
mode:
authorsr55 <[email protected]>2018-12-15 21:14:47 +0000
committersr55 <[email protected]>2018-12-15 21:14:47 +0000
commit88b0c6e75e0200bba533260eab7cd832ed846659 (patch)
treefcbb67179fb7885369658d552b393ebac20cfd85 /win/CS/HandBrakeWPF/Services/PrePostActionService.cs
parent6e747a14f5c5bef72490a19c93914f9e71cd9b22 (diff)
WinGui: Try to work-around broken shell extensions breaking the Shutdown feature.
Diffstat (limited to 'win/CS/HandBrakeWPF/Services/PrePostActionService.cs')
-rw-r--r--win/CS/HandBrakeWPF/Services/PrePostActionService.cs4
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);