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:
parent
6a9ba6ad06
commit
2525fefbb9
6 changed files with 49 additions and 4 deletions
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue