diff options
author | sr55 <[email protected]> | 2021-01-29 19:18:39 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2021-01-29 19:18:45 +0000 |
commit | e943cc289a4922a1cfd2d8f5f7faae4f0e1c1f2a (patch) | |
tree | 0064287c0810cca75c0ea3d24b183b7212b0a00c /win | |
parent | 818dbfe932eb2c6c484bd09fee04c5748963a1be (diff) |
WinGui: Workaround system breakage when launching URL's. Fixes #3381
Diffstat (limited to 'win')
6 files changed, 9 insertions, 9 deletions
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 /// </param>
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 /// </param>
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)
|