openDefaultBrowser now works on OSX (#13892) [backport]

This commit is contained in:
Timothee Cour 2020-04-05 23:26:12 -07:00 • committed by GitHub
commit e6d870896b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -21,9 +21,9 @@ else:
import os, osproc import os, osproc
const osOpenCmd* = const osOpenCmd* =
when defined(macos) or defined(windows): "open" else: "xdg-open" ## \ when defined(macos) or defined(macosx) or defined(windows): "open" else: "xdg-open" ## \
## Alias for the operating system specific *"open"* command, ## Alias for the operating system specific *"open"* command,
## ``"open"`` on MacOS and Windows, ``"xdg-open"`` on Linux, BSD, etc. ## ``"open"`` on OSX, MacOS and Windows, ``"xdg-open"`` on Linux, BSD, etc.
template openDefaultBrowserImpl(url: string) = template openDefaultBrowserImpl(url: string) =