summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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.