<div dir="ltr"><div><div><div>Hi,<br></div>Between application running on X11 apparently there's no standard way to tell if file(s) (their URIs) have been "cut" or "copied" into the clipboard, so you don't know what to do on "Paste", so people invented (silly) workarounds as explained here [1]:<br>
<br>"Since there is no standard way to copy and paste files between
applications on X11, various MIME types and conventions are currently in
use. For instance, Nautilus expects files to be supplied with a <tt>x-special/gnome-copied-files</tt> MIME type with data beginning with the cut/copy action, a newline character, and the URL of the file."<br><br></div>
I wonder if the Wayland protocol allows for a proper/easy solution to this problem (I'm talking about cut/copy/paste, not drag-n-drop), like an additional uint32_t info field to code the type of action into it, not just the URI strings?<br>
<br></div>I looked here [2] and wl_data_device::set_selection_arguments has a "uint serial" field but I'm not sure if it's meant to solve this problem or for a different reason.<br><div><div><br></div><div>
Can anyone please explain?<br></div><div><br><br>[1] <a href="http://qt-project.org/doc/qt-4.8/qclipboard.html">http://qt-project.org/doc/qt-4.8/qclipboard.html</a><br>[2] <a href="http://wayland.freedesktop.org/docs/html/protocol-spec-interface-wl_data_device.html">http://wayland.freedesktop.org/docs/html/protocol-spec-interface-wl_data_device.html</a><br>
</div></div></div>