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

(cherry picked from commit e6d870896b)
This commit is contained in:
Timothee Cour
2020-04-05 23:26:12 -07:00
committed by narimiran
parent 0d59ec9b54
commit adf644d6a4

View File

@@ -21,9 +21,9 @@ else:
import os, osproc
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,
## ``"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) =