From e943cc289a4922a1cfd2d8f5f7faae4f0e1c1f2a Mon Sep 17 00:00:00 2001 From: sr55 Date: Fri, 29 Jan 2021 19:18:39 +0000 Subject: WinGui: Workaround system breakage when launching URL's. Fixes #3381 --- win/CS/HandBrakeWPF/Controls/SourceSelection.xaml.cs | 2 +- win/CS/HandBrakeWPF/ViewModels/AudioDefaultsViewModel.cs | 2 +- win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs | 6 +++--- win/CS/HandBrakeWPF/ViewModels/PresetManagerViewModel.cs | 2 +- win/CS/HandBrakeWPF/ViewModels/SubtitlesDefaultsViewModel.cs | 2 +- win/CS/HandBrakeWPF/Views/AboutView.xaml.cs | 4 ++-- 6 files changed, 9 insertions(+), 9 deletions(-) (limited to 'win') diff --git a/win/CS/HandBrakeWPF/Controls/SourceSelection.xaml.cs b/win/CS/HandBrakeWPF/Controls/SourceSelection.xaml.cs index 21308d6ab..850d4e182 100644 --- a/win/CS/HandBrakeWPF/Controls/SourceSelection.xaml.cs +++ b/win/CS/HandBrakeWPF/Controls/SourceSelection.xaml.cs @@ -69,7 +69,7 @@ namespace HandBrakeWPF.Controls /// private void Help_OnRequestNavigate(object sender, RequestNavigateEventArgs e) { - Process.Start("https://handbrake.fr/docs"); + Process.Start("explorer.exe", "https://handbrake.fr/docs"); } private void UpdateAvailable_OnRequestNavigate(object sender, RequestNavigateEventArgs e) diff --git a/win/CS/HandBrakeWPF/ViewModels/AudioDefaultsViewModel.cs b/win/CS/HandBrakeWPF/ViewModels/AudioDefaultsViewModel.cs index b60767f7f..2fa8cccf4 100644 --- a/win/CS/HandBrakeWPF/ViewModels/AudioDefaultsViewModel.cs +++ b/win/CS/HandBrakeWPF/ViewModels/AudioDefaultsViewModel.cs @@ -560,7 +560,7 @@ namespace HandBrakeWPF.ViewModels public void LaunchHelp() { - Process.Start("https://handbrake.fr/docs/en/latest/advanced/audio-subtitle-defaults.html"); + Process.Start("explorer.exe", "https://handbrake.fr/docs/en/latest/advanced/audio-subtitle-defaults.html"); } #endregion diff --git a/win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs b/win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs index f6e6eb958..172637ddc 100644 --- a/win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs +++ b/win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs @@ -1054,7 +1054,7 @@ namespace HandBrakeWPF.ViewModels { try { - Process.Start("https://handbrake.fr/docs"); + Process.Start("explorer.exe", "https://handbrake.fr/docs"); } catch (Exception exc) { @@ -1575,7 +1575,7 @@ namespace HandBrakeWPF.ViewModels string directory = Path.GetDirectoryName(this.Destination); if (!string.IsNullOrEmpty(directory) && Directory.Exists(directory)) { - Process.Start(directory); + Process.Start("explorer.exe", directory); } else { @@ -1588,7 +1588,7 @@ namespace HandBrakeWPF.ViewModels if (result == MessageBoxResult.Yes) { Directory.CreateDirectory(directory); - Process.Start(directory); + Process.Start("explorer.exe", directory); } } } diff --git a/win/CS/HandBrakeWPF/ViewModels/PresetManagerViewModel.cs b/win/CS/HandBrakeWPF/ViewModels/PresetManagerViewModel.cs index 065c377d6..b34409bad 100644 --- a/win/CS/HandBrakeWPF/ViewModels/PresetManagerViewModel.cs +++ b/win/CS/HandBrakeWPF/ViewModels/PresetManagerViewModel.cs @@ -438,7 +438,7 @@ namespace HandBrakeWPF.ViewModels public void LaunchHelp() { - Process.Start("https://handbrake.fr/docs/en/latest/advanced/custom-presets.html"); + Process.Start("explorer.exe", "https://handbrake.fr/docs/en/latest/advanced/custom-presets.html"); } private void SetDefaultPreset() diff --git a/win/CS/HandBrakeWPF/ViewModels/SubtitlesDefaultsViewModel.cs b/win/CS/HandBrakeWPF/ViewModels/SubtitlesDefaultsViewModel.cs index 3e842da19..99e16d93a 100644 --- a/win/CS/HandBrakeWPF/ViewModels/SubtitlesDefaultsViewModel.cs +++ b/win/CS/HandBrakeWPF/ViewModels/SubtitlesDefaultsViewModel.cs @@ -194,7 +194,7 @@ namespace HandBrakeWPF.ViewModels public void LaunchHelp() { - Process.Start("https://handbrake.fr/docs/en/latest/advanced/audio-subtitle-defaults.html"); + Process.Start("explorer.exe", "https://handbrake.fr/docs/en/latest/advanced/audio-subtitle-defaults.html"); } #endregion diff --git a/win/CS/HandBrakeWPF/Views/AboutView.xaml.cs b/win/CS/HandBrakeWPF/Views/AboutView.xaml.cs index d624cc74c..f473c9c3f 100644 --- a/win/CS/HandBrakeWPF/Views/AboutView.xaml.cs +++ b/win/CS/HandBrakeWPF/Views/AboutView.xaml.cs @@ -38,12 +38,12 @@ namespace HandBrakeWPF.Views /// private void HandbrakeWebsite_OnRequestNavigate(object sender, RequestNavigateEventArgs e) { - Process.Start("https://handbrake.fr"); + Process.Start("explorer.exe", "https://handbrake.fr"); } private void GithubWebsite_OnRequestNavigate(object sender, RequestNavigateEventArgs e) { - Process.Start("https://github.com/HandBrake/HandBrake/issues"); + Process.Start("explorer.exe", "https://github.com/HandBrake/HandBrake/issues"); } private void AboutTextBox_OnMouseDoubleClick(object sender, MouseButtonEventArgs e) -- cgit v1.2.3