From e2c997b5e2d4589d5a4710049734a0a03048363d Mon Sep 17 00:00:00 2001 From: jao Date: Sat, 12 Jan 2019 19:05:06 +0000 Subject: Honour flags when no config file is available (fixes #375) --- src/Xmobar/App/Main.hs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Xmobar/App/Main.hs b/src/Xmobar/App/Main.hs index 6eda49a..e54c846 100644 --- a/src/Xmobar/App/Main.hs +++ b/src/Xmobar/App/Main.hs @@ -1,7 +1,7 @@ ------------------------------------------------------------------------------ -- | -- Module: Xmobar.App.Main --- Copyright: (c) 2018 Jose Antonio Ortega Ruiz +-- Copyright: (c) 2018, 2019 Jose Antonio Ortega Ruiz -- License: BSD3-style (see LICENSE) -- -- Maintainer: jao@gnu.org @@ -99,7 +99,7 @@ xmobarMain = do case cf of Nothing -> case rest of (c:_) -> error $ c ++ ": file not found" - _ -> xmobar defaultConfig + _ -> doOpts defaultConfig flags >>= xmobar Just p -> do r <- readConfig defaultConfig p case r of Left e -> -- cgit v1.2.3