Trash๐
org.freedesktop.portal.Trash
Portal for trashing files
This simple interface lets sandboxed applications send files to the trashcan.
This documentation describes version 1 of this interface.
Entitlements๐
org.freedesktop.portal.Trashยท version 1Gates general access to the Trash portal.
See Entitlements for general information about the entitlement system.
Properties๐
version๐
version readable u
Methods๐
TrashFile()๐
TrashFile (
IN fd h,
OUT result u
)
Sends a file to the trashcan. Applications are allowed to trash a file if they can open it in r/w mode.
- fd
file descriptor for the file to trash
- result
the result. 0 if trashing failed, 1 if trashing succeeded, other values may be returned in the future