support for opening urls on windows

This commit is contained in:
Joey Hess 2013-12-06 18:18:05 -04:00
parent db26e3c4de
commit 4d5e0a90ed

View file

@ -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.