Skip to content

Commit

Permalink
Use new XDG API to get data directory
Browse files Browse the repository at this point in the history
  • Loading branch information
kephas committed Jan 15, 2024
1 parent ee364a4 commit e987ef5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Action/CmdLine.hs
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ data CmdLine

defaultDatabaseLang :: Language -> IO FilePath
defaultDatabaseLang lang = do
dir <- getAppUserDataDirectory "hoogle"
dir <- getXdgDirectory XdgData "hoogle"
pure $ dir </> "default-" ++ lower (show lang) ++ "-" ++ showVersion (trimVersion 3 version) ++ ".hoo"

getCmdLine :: [String] -> IO CmdLine
Expand Down

0 comments on commit e987ef5

Please sign in to comment.