From af2e65f1c25b72643dfec6ae2a9284ebeeb70ec5 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Tue, 27 Nov 2012 17:05:29 -0400 Subject: 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. --- Command/WebApp.hs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'Command') diff --git a/Command/WebApp.hs b/Command/WebApp.hs index a0bd2e7f7..1d97eb304 100644 --- a/Command/WebApp.hs +++ b/Command/WebApp.hs @@ -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 -- cgit v1.2.3