From eaccf70440e24ac90f9d0ad948c262ba084659dc Mon Sep 17 00:00:00 2001 From: James McCoy Date: Tue, 29 Oct 2013 08:58:42 -0400 Subject: Fix xdgconf logic in readDefaultConfig readDefaultConfig should prefer $XDG_CONFIG_HOME/xmobarrc if it exists, however the code was always reading path. This fixes the logic to actually use xdgconf if it exists. --- src/Main.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/Main.hs b/src/Main.hs index e90a158..d0fe4fc 100644 --- a/src/Main.hs +++ b/src/Main.hs @@ -109,7 +109,7 @@ readDefaultConfig = do x <- io $ fileExist xdgconf home <- io $ getEnv "HOME" let path = home ++ "/.xmobarrc" - f <- io $ fileExist path + f <- io $ fileExist xdgconf if x then readConfig path else if f then readConfig path else return (defaultConfig,[]) -- cgit v1.2.3