You are not logged in.

#1 2011-08-29 07:20:23

olive
Member
From: Belgium
Registered: 2008-06-22
Posts: 1,490

Drag and drop in linux

You can drag and drop a file from one location to another. I have noticed that it works even outside a desktop environment (icewm) without any daemon running (so no dbus etc...). It works from xfe (a very light filemanager) to emacs (even compiled without dbus). It even works between xfe and an emulated windows in vmware. Does anyone know what is the protocol used? I knew that it existed but I had always assumed that it depended of specific daemons from a specific desktop environment but I am apparently wrong. I have been unable to found anything on this on Google.

Last edited by olive (2011-08-29 07:21:59)

Offline

#2 2011-08-29 07:31:07

mikesd
Member
From: Australia
Registered: 2008-02-01
Posts: 788
Website

Re: Drag and drop in linux

It is part of the X protocols, Xdnd. I have used the Gtk wrappers around it with pygtk. It made things fairly simple.

http://www.pygtk.org/pygtk2tutorial/ch-DragAndDrop.html

Offline

Board footer

Powered by FluxBB