mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-14 21:44:57 +00:00
Where the clipboard goes through the compositor's core Wayland protocol (the Flatpak on GNOME), Paste now reads the text/uri-list a file manager offers, else GNOME Files' x-special/gnome-copied-files, and pastes the first file that is art before the clipboard's other types, as on the other platforms. The list is read on the read worker and the files on the paste's background thread. Only file: URIs with no host or localhost are taken (RFC 8089), percent escapes decoded once (RFC 3986); other URIs are skipped, and a list of more than 1,024 URIs, a limit of VectorCraft's own, names no file. The Paste menu item is enabled when a file list is offered.