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 1

Gates 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