Skip to content

Commit 88b0c6e

Browse files
committed
WinGui: Try to work-around broken shell extensions breaking the Shutdown feature.
1 parent 6e747a1 commit 88b0c6e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

win/CS/HandBrakeWPF/Services/PrePostActionService.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,9 @@ private void QueueProcessorQueueCompleted(object sender, QueueCompletedEventArgs
161161
switch (this.userSettingService.GetUserSetting<string>(UserSettingConstants.WhenCompleteAction))
162162
{
163163
case "Shutdown":
164-
Process.Start("Shutdown", "-s -t 60");
164+
ProcessStartInfo shutdown = new ProcessStartInfo("Shutdown", "-s -t 60");
165+
shutdown.UseShellExecute = false;
166+
Process.Start(shutdown);
165167
break;
166168
case "Log off":
167169
Win32.ExitWindowsEx(0, 0);

0 commit comments

Comments
 (0)