diff options
Diffstat (limited to 'win/CS/HandBrakeWPF/Services')
-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);
|