Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Wrappers around the XDG Desktop Portal D-BUS API.
See the documentation for the underlying API: https://flatpak.github.io/xdg-desktop-portal
Synopsis
- data Client
- connect :: IO Client
- disconnect :: Client -> IO ()
- clientName :: Client -> BusName
- data Request a
- await :: Request a -> IO (Maybe a)
- cancel :: Request a -> IO ()
- data SignalHandler
- cancelSignalHandler :: SignalHandler -> IO ()
- module Desktop.Portal.Account
- module Desktop.Portal.FileChooser
- module Desktop.Portal.Notification
Connection Management
A handle for an active desktop portal session. Can send requests and listen for signals.
Open a new client connection. This can be used to send requests and listen for signals
and finally can be closed using disconnect
.
disconnect :: Client -> IO () Source #
clientName :: Client -> BusName Source #
Get the unique name given to the client by D-BUS.
Request Management
A portal request that may be in-progress, finished, or cancelled.
Signal Management
data SignalHandler Source #
A listener for a particular signal. Can be cancelled with cancelSignalHandler
.
cancelSignalHandler :: SignalHandler -> IO () Source #
Prevent any future invocations of the given signal handler.
Portal Interfaces
module Desktop.Portal.Account
module Desktop.Portal.FileChooser
module Desktop.Portal.Notification