openDefaultBrowser now works on OSX (#13892) [backport]
This commit is contained in:
parent
f1fd3ef7f4
commit
e6d870896b
1 changed files with 2 additions and 2 deletions
|
|
@ -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) =
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue