.. _org.freedesktop.portal.Trash:

============================
 Trash
============================

-----------
Description
-----------

.. _org.freedesktop.portal.Trash Description:

Portal for trashing files

This simple interface lets sandboxed applications send files to
the trashcan.

This documentation describes version 1 of this interface.



.. _org.freedesktop.portal.Trash Properties:

----------
Properties
----------

.. _org.freedesktop.portal.Trash:version:

org.freedesktop.portal.Trash:version
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

::

    version readable u




.. _org.freedesktop.portal.Trash Methods:

-------
Methods
-------

.. _org.freedesktop.portal.Trash.TrashFile:

org.freedesktop.portal.Trash.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


