Well it looks like it's a mess, the Thunar source code uses a "special gnome copied files" atom and a slew of hooks, gee, I hoped for an easy solution.
thunar-clipboard-manager.c:
Code:
struct _ThunarClipboardManager
{
GObject __parent__;
GtkClipboard *clipboard;
gboolean can_paste;
GdkAtom x_special_gnome_copied_files;
gboolean files_cutted;
GList *files;
};
typedef struct
{
ThunarClipboardManager *manager;
GFile *target_file;
GtkWidget *widget;
GClosure *new_files_closure;
} ThunarClipboardPasteRequest;
static const GtkTargetEntry clipboard_targets[] =
{
{ "text/uri-list", 0, TARGET_TEXT_URI_LIST },
{ "x-special/gnome-copied-files", 0, TARGET_GNOME_COPIED_FILES },
{ "UTF8_STRING", 0, TARGET_UTF8_STRING }
};
And more info found here:
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 x-special/gnome-copied-files MIME type with data beginning with the cut/copy action, a newline character, and the URL of the file.
I guess it's because they never dared fixing X11, only working around it, but that's another story.
Bookmarks