desktop-portal-0.3.0.0: Desktop Portal.
Safe HaskellSafe-Inferred
LanguageHaskell2010

Desktop.Portal.Directories

Description

Some helper functions to provide paths to base directories to application data/cache/etc.

See https://docs.flatpak.org/en/latest/conventions.html#xdg-base-directories

Synopsis

Documentation

getXdgConfigHome :: IO FilePath Source #

The directory in which to store user-specific configuration files (~/.var/app/$appId/config by default).

getXdgDataHome :: IO FilePath Source #

The directory in which to store user-specific data (@~/.var/app/$appId/data' by default).

getXdgCacheHome :: IO FilePath Source #

The directory in which to store user-specific caches (~/.var/app/$appId/cache by default).

getXdgStateHome :: IO FilePath Source #

The directory in which to store state data such as undo history (~/.var/app/$appId/.local/state by default).