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
|
@ -137,9 +137,10 @@ openBrowser cmd htmlshim = go $ maybe runBrowser runCustomBrowser cmd
|
|||
go a = do
|
||||
putStrLn ""
|
||||
putStrLn $ "Launching web browser on " ++ url
|
||||
unlessM (a url) $
|
||||
env <- cleanEnvironment
|
||||
unlessM (a url env) $
|
||||
error $ "failed to start web browser"
|
||||
runCustomBrowser c u = boolSystem c [Param u]
|
||||
runCustomBrowser c u = boolSystemEnv c [Param u]
|
||||
|
||||
{- web.browser is a generic git config setting for a web browser program -}
|
||||
webBrowser :: Git.Repo -> Maybe FilePath
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue