diff options
Diffstat (limited to 'src/Control/SremConfig.hs')
-rw-r--r-- | src/Control/SremConfig.hs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Control/SremConfig.hs b/src/Control/SremConfig.hs index ec1dc77..18ff0da 100644 --- a/src/Control/SremConfig.hs +++ b/src/Control/SremConfig.hs @@ -28,6 +28,8 @@ module Control.SremConfig ( getCacheDirectory import System.Directory (getHomeDirectory) import System.FilePath ((</>)) +-- TODO: check $XDG_CACHE or whatever environment variable before defaulting to ~/.cache + getCacheDirectory :: IO FilePath getCacheDirectory = getHomeDirectory >>= \h -> return $ h </> ".cache" </> "srem" |