![]() |
![]() |
![]() |
![]() |
This function lets applications send a file to the trash can.
The underlying portal is org.freedesktop.portal.Trash.
void xdp_portal_trash_file (XdpPortal *portal
,const char *path
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer data
);
Sends the file at path
to the trash can.
portal |
||
path |
the path for a local file |
|
cancellable |
optional GCancellable. |
[nullable] |
callback |
a callback to call when the request is done. |
[scope async] |
data |
data to pass to |
[closure] |
gboolean xdp_portal_trash_file_finish (XdpPortal *portal
,GAsyncResult *result
,GError **error
);
Finishes the trash-file request, and returns the result in the form of a boolean.