selection_read


Description:

public int selection_read (string mime_type)

Request to read the contents of the current clipboard selection in the passed mime type format.

On success a file descriptor is returned, which can be read from to retrieve the clipboard selection content.

Parameters:

this

a [class@Session]

mime_type

a string containing the requested mime type

Returns:

A file descriptor, or -1 on error. The caller must close the file descriptor when finished with it.