pub async fn paste() -> Result<Option<Paste>, String>
pi’s reads in handleClipboardPaste: the paths of copied files, else the clipboard’s image saved to a temporary file, else its text. The error is the reason pi reports.
handleClipboardPaste