support for opening urls on windows
This commit is contained in:
parent
db26e3c4de
commit
4d5e0a90ed
1 changed files with 4 additions and 0 deletions
|
@ -53,9 +53,13 @@ browserProc url = proc "open" [url]
|
|||
browserProc url = proc "am"
|
||||
["start", "-a", "android.intent.action.VIEW", "-d", url]
|
||||
#else
|
||||
#ifdef mingw32_HOST_OS
|
||||
browserProc url = proc "cmd" ["/c", "start", url]
|
||||
#else
|
||||
browserProc url = proc "xdg-open" [url]
|
||||
#endif
|
||||
#endif
|
||||
#endif
|
||||
|
||||
{- Binds to a socket on localhost, or possibly a different specified
|
||||
- hostname or address, and runs a webapp on it.
|
||||
|
|
Loading…
Add table
Reference in a new issue