mirror of
https://github.com/aphrody-labs/PowerShell.git
synced 2026-10-17 04:36:39 +00:00
Merge pull request #803 from PowerShell/andschwa/help-online
Fix Get-Help -Online
This commit is contained in:
commit
be235b0f0b
1 file changed
+10
-1
@@ -688,7 +688,16 @@ namespace Microsoft.PowerShell.Commands
|
||||
this.WriteVerbose(string.Format(CultureInfo.InvariantCulture, HelpDisplayStrings.OnlineHelpUri, uriToLaunch.OriginalString));
|
||||
System.Diagnostics.Process browserProcess = new System.Diagnostics.Process();
|
||||
browserProcess.StartInfo.UseShellExecute = true;
|
||||
browserProcess.StartInfo.FileName = uriToLaunch.OriginalString;
|
||||
if (Platform.IsWindows)
|
||||
{
|
||||
browserProcess.StartInfo.FileName = uriToLaunch.OriginalString;
|
||||
} else if (Platform.IsOSX) {
|
||||
browserProcess.StartInfo.FileName = "open";
|
||||
browserProcess.StartInfo.Arguments = uriToLaunch.OriginalString;
|
||||
} else if (Platform.IsLinux) {
|
||||
browserProcess.StartInfo.FileName = "xdg-open";
|
||||
browserProcess.StartInfo.Arguments = uriToLaunch.OriginalString;
|
||||
}
|
||||
browserProcess.Start();
|
||||
}
|
||||
catch (InvalidOperationException ioe)
|
||||
|
||||
Reference in new issue
Block a user