summaryrefslogtreecommitdiff
path: root/Utility/WebApp.hs
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2013-12-06 18:18:05 -0400
committerGravatar Joey Hess <joey@kitenet.net>2013-12-06 18:18:05 -0400
commit9bc75d16fb06548f5113a51796b22ab1e42f7c2d (patch)
tree798303b270bb7061ca308d78536a7dd0c94e6527 /Utility/WebApp.hs
parentac5c09cfa817a0916d6f5226236760c52bfa03a4 (diff)
support for opening urls on windows
Diffstat (limited to 'Utility/WebApp.hs')
-rw-r--r--Utility/WebApp.hs4
1 files changed, 4 insertions, 0 deletions
diff --git a/Utility/WebApp.hs b/Utility/WebApp.hs
index 7148dfce3..2f3ebfb5b 100644
--- a/Utility/WebApp.hs
+++ b/Utility/WebApp.hs
@@ -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.