Closed firedfly closed 2 years ago
It looks like starting the process with UseShellExecute=true will fix the issue. I'm not familiar enough with the code to know if changing that will have any side effects elsewhere, though.
It looks like the default value for this property changed from .net framework to .net core: https://docs.microsoft.com/en-us/dotnet/api/system.diagnostics.processstartinfo.useshellexecute?view=netframework-4.8
I tested changing the property by updating one of the start methods in DefaultLocalProcess to:
public static DefaultLocalProcess Start(string fileName)
{
var startInfo = new ProcessStartInfo(fileName) { UseShellExecute = true };
return new DefaultLocalProcess(Process.Start(startInfo));
}
Found the same info. Fixed in latest commit. Thanks @firedfly for the help and the PRs! Keep them coming!
When running the new .NET 5 version of HFM (v9.25.1650), none of the links to web pages will open (e.g. HFM Google Group; FAH User Stats Page, etc). These menu items work correctly in the .NET Framework build of v9.25.1650 on the same computer.
The following error displays on screen:![image](https://user-images.githubusercontent.com/4018878/130374107-23b8388f-cd25-4e1e-9b90-085b225b4ac1.png)
The follow is recorded in the HFM log file: