packages feed

desktop-portal 0.3.2.0 → 0.4.0.0

raw patch · 4 files changed

+5/−32 lines, 4 filesPVP ok

version bump matches the API change (PVP)

API changes (from Hackage documentation)

- Desktop.Portal.Directories: getXdgCacheHome :: IO FilePath
- Desktop.Portal.Directories: getXdgConfigHome :: IO FilePath
- Desktop.Portal.Directories: getXdgDataHome :: IO FilePath
- Desktop.Portal.Directories: getXdgStateHome :: IO FilePath

Files

ChangeLog.md view
@@ -1,3 +1,7 @@+## 0.4.0.0+### Removed+- Remove `Desktop.Portal.Directories`. Use the directory package instead.+ ## 0.3.2.0 ### Added - Add Camera Portal support.
desktop-portal.cabal view
@@ -1,6 +1,6 @@ cabal-version:      1.12 name:               desktop-portal-version:            0.3.2.0+version:            0.4.0.0 license:            MIT license-file:       LICENSE maintainer:         garethdanielsmith@gmail.com@@ -23,7 +23,6 @@         Desktop.Portal         Desktop.Portal.Account         Desktop.Portal.Camera-        Desktop.Portal.Directories         Desktop.Portal.Documents         Desktop.Portal.FileChooser         Desktop.Portal.Notification
src/Desktop/Portal.hs view
@@ -24,7 +24,6 @@     -- * Portal Interfaces     module Desktop.Portal.Account,     module Desktop.Portal.Camera,-    module Desktop.Portal.Directories,     module Desktop.Portal.FileChooser,     module Desktop.Portal.Notification,     module Desktop.Portal.OpenURI,@@ -34,7 +33,6 @@  import Desktop.Portal.Account import Desktop.Portal.Camera-import Desktop.Portal.Directories import Desktop.Portal.FileChooser import Desktop.Portal.Internal qualified as Internal import Desktop.Portal.Notification
− src/Desktop/Portal/Directories.hs
@@ -1,28 +0,0 @@--- | 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-module Desktop.Portal.Directories-  ( getXdgConfigHome,-    getXdgDataHome,-    getXdgCacheHome,-    getXdgStateHome,-  )-where--import System.Environment (getEnv)---- | The directory in which to store user-specific configuration files (@~\/.var\/app\/$appId\/config@ by default).-getXdgConfigHome :: IO FilePath-getXdgConfigHome = getEnv "XDG_CONFIG_HOME"---- | The directory in which to store user-specific data (@~\/.var\/app\/$appId\/data' by default).-getXdgDataHome :: IO FilePath-getXdgDataHome = getEnv "XDG_DATA_HOME"---- | The directory in which to store user-specific caches (@~\/.var\/app\/$appId\/cache@ by default).-getXdgCacheHome :: IO FilePath-getXdgCacheHome = getEnv "XDG_CACHE_HOME"---- | The directory in which to store state data such as undo history (@~\/.var\/app\/$appId\/.local\/state@ by default).-getXdgStateHome :: IO FilePath-getXdgStateHome = getEnv "XDG_STATE_HOME"