Documentation
¶
Overview ¶
Package portal is the xdg-desktop-portal client side lys-shell needs: the Request/Response handshake and the FileChooser.
Index ¶
Constants ¶
const ( BusName = "org.freedesktop.portal.Desktop" ObjectPath = dbus.ObjectPath("/org/freedesktop/portal/desktop") RequestIface = "org.freedesktop.portal.Request" )
Portal bus identity.
const ( ResponseSuccess uint32 = 0 ResponseCancelled uint32 = 1 ResponseOther uint32 = 2 )
Response codes of org.freedesktop.portal.Request.Response.
const FileChooserIface = "org.freedesktop.portal.FileChooser"
FileChooserIface is org.freedesktop.portal.FileChooser.
Variables ¶
var ErrCancelled = errors.New("portal: request cancelled")
ErrCancelled is a request the user dismissed.
Functions ¶
Types ¶
type FileFilter ¶
FileFilter is one named filter of glob patterns.