The standalone builds now unset their special path and library path variables before running the system web browser.

Should fix a crash reported on OSX.
This commit is contained in:
Joey Hess 2012-11-27 17:05:29 -04:00
parent 6a9ba6ad06
commit 2525fefbb9
6 changed files with 49 additions and 4 deletions

View file

@ -41,8 +41,8 @@ localhost = "localhost"
{- Runs a web browser on a given url.
-
- Note: The url *will* be visible to an attacker. -}
runBrowser :: String -> IO Bool
runBrowser url = boolSystem cmd [Param url]
runBrowser :: String -> (Maybe [(String, String)]) -> IO Bool
runBrowser url env = boolSystemEnv cmd [Param url] env
where
#ifdef darwin_HOST_OS
cmd = "open"