diff options
author | Joey Hess <joey@kitenet.net> | 2012-09-17 00:18:07 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2012-09-17 00:18:07 -0400 |
commit | e8188ea611e4c9223492203c0ec0370c3c45b225 (patch) | |
tree | 2a078993be28d1dedc38f8ab9ad193eea0ecf90e /Utility/FreeDesktop.hs | |
parent | ba744c84a4f683e50bf4c9b8c388e3a611f7fb91 (diff) |
flip catchDefaultIO
Diffstat (limited to 'Utility/FreeDesktop.hs')
-rw-r--r-- | Utility/FreeDesktop.hs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Utility/FreeDesktop.hs b/Utility/FreeDesktop.hs index a1109f729..0845f3329 100644 --- a/Utility/FreeDesktop.hs +++ b/Utility/FreeDesktop.hs @@ -123,4 +123,5 @@ userDesktopDir = maybe fallback return =<< (parse <$> xdg_user_dir) xdgEnvHome :: String -> String -> IO String xdgEnvHome envbase homedef = do home <- myHomeDir - catchDefaultIO (getEnv $ "XDG_" ++ envbase) (home </> homedef) + catchDefaultIO (home </> homedef) $ + getEnv $ "XDG_" ++ envbase |