Drag and drop to initiate file transfer

Bug #145251 reported by sander on 2007-09-26
2
Affects Status Importance Assigned to Milestone
Coccinella
Critical
Mats

Bug Description

When people drag and drop a file in a chat window, a file transfer dialog should be opened with this file to send to the active contact.

sander (s-devrieze) on 2007-10-05
Changed in coccinella:
assignee: nobody → matsben
importance: Undecided → Wishlist

There is support for thsi:
 InitDnD $chattoken $wtextsnd

On 10/5/07, sander <email address hidden> wrote:
> ** Changed in: coccinella
> Importance: Undecided => Wishlist
> Assignee: (unassigned) => Mats (matsben)
>
> --
> Drag and drop to initiate file transfer
> https://bugs.launchpad.net/bugs/145251
> You received this bug notification because you are a bug assignee.
>

sander (s-devrieze) wrote :

Tested under Linux.

Changed in coccinella:
status: New → Fix Committed
sander (s-devrieze) wrote :

Does not work anymore! When I drop a file on the chat window, it asks me to start a chatroom session!!

Changed in coccinella:
importance: Wishlist → Critical
status: Fix Committed → Incomplete
Mats (matsben) wrote :

There are a lot of weird things going on here. Now I can't get anything to work, on linux. Windows works perfectly. It is likely that tkdnd bugs are also involved, seen a few. One peculiar thing is that if a drag a contact from the roster (exported as file & text) to the Chat window, the target handler for text (text/plain;charset=UTF-8) is executed, but that was only registered for files!

    dnd bindtarget $win text/uri-list <DragEnter> \
     [list ::Chat::DnDFileEnter $chattoken %W %A %D %T] 80

Dragging contact from roster to Chat:
% ::Chat::DnDFileEnter win=.jchat1.frall.fthr.m.pane.frtxtsnd.text, data=, type=text/plain;charset=UTF-8

Mats (matsben) wrote :

After digging like a maniac it seems that the problem is Gnomes DnD support. After some extremely weird results I switched to KDE and there my simple debug case starts working again. One of the experiments on Gnome showed:

Dragging text to text widget:

::Chat::DnDFileEnter win=.jchat1.frall.fthr.m.pane.frtxtsnd.text, action=copy, data=, type=text/plain;charset=UTF-8

% dnd bindtarget .jchat1.frall.fthr.m.pane.frtxtsnd.text
text/uri-list text/uri-list text/uri-list text/uri-list text/uri-list text/uri-list text/uri-list text/uri-list text/uri-list text/uri-list text/uri-list text/uri-list text/uri-list text/uri-list text/uri-list text/uri-list text/uri-list text/uri-list text/uri-list text/uri-list text/uri-list text/uri-list text/uri-list text/uri-list text/uri-list text/uri-list text/uri-list text/uri-list text/uri-list text/uri-list

% dnd bindtarget .jchat1.frall.fthr.m.pane.frtxtsnd.text text/uri-list <DragEnter>
::Chat::DnDFileEnter ::Chat::chat1 %W %A %D %T

% dnd bindtarget .jchat1.frall.fthr.m.pane.frtxtsnd.text {text/plain;charset=UTF-8}
script not found

You see, I register for files (text/uri-list) and get text (text/plain;charset=UTF-8)

Mats (matsben) wrote :

I can add that my Gnome desktop (Nautilus?) indeed dives like a submarine (crashes) under some operations. There is clearly a problem here.

sander (s-devrieze) wrote :

I am using KDE, not Gnome. Also, it does not seems to be fixed in
latest CVS, right?

This may help you: http://www.freedesktop.org/wiki/Draganddropwarts

Mats (matsben) wrote :

I haven't added anything to cvs yet.
Will experiment by adding the file:// which seems missing now...

/Mats

On 12/6/07, sander <email address hidden> wrote:
> I am using KDE, not Gnome. Also, it does not seems to be fixed in
> latest CVS, right?
>
> This may help you: http://www.freedesktop.org/wiki/Draganddropwarts
>
> --
> Drag and drop to initiate file transfer
> https://bugs.launchpad.net/bugs/145251
> You received this bug notification because you are a bug assignee.
>

Mats (matsben) wrote :

If I have both file and text drop targets on, and drag a file from desktop, the text target fires! This doesn't happen on Windows. Seems that the desktop sets the primary source for dropping files to text if both text and file are registered as targets! Weird! All on KDE now.

Mats (matsben) wrote :

 * Switched off the text widgets as xmpp/text drop targets for x11.
I can't figure out how and why the Desktop exports files as text and not files.
Reading http://www.freedesktop.org/wiki/Draganddropwarts indicates that things implementing XDnD are a bit buggy.

sander (s-devrieze) wrote :

> Reading http://www.freedesktop.org/wiki/Draganddropwarts indicates that things implementing XDnD are a bit buggy.

Maybe you can contact them for help?

Mats (matsben) wrote :

There is a tkdnd 2.0 (now 1.0) which is a complete rewrite that that
is unfinished. Likely these things have been dealt with there.

On 12/7/07, sander <email address hidden> wrote:
> > Reading http://www.freedesktop.org/wiki/Draganddropwarts indicates
> that things implementing XDnD are a bit buggy.
>
> Maybe you can contact them for help?
>
> --
> Drag and drop to initiate file transfer
> https://bugs.launchpad.net/bugs/145251
> You received this bug notification because you are a bug assignee.
>

Mats (matsben) wrote :

Results:
1) Drag file from desktop into chat text widget
2) Drag contact from roster to desktop

Gnome:
1) the text widgets aren't recognized as drop targets even if they used to be. Nothing happens.
2) Nautilus crashes

KDE:
1) works as expected
2) works as expected

Chasing this ghost anymore is not my favorite waste of time, so to speak. It is just not possible to reach any further.

Mats (matsben) wrote :

There are "known" problems with XDND on Gnome. I initiated this thread http://groups.google.com/group/comp.lang.tcl/browse_thread/thread/b531570908c78cda/6e830c899db75cbe?hl=sv#6e830c899db75cbe where the author of tkdnd confirms this.

sander (s-devrieze) on 2007-12-14
Changed in coccinella:
milestone: 0.96.4 → 0.96.6
sander (s-devrieze) wrote :

What's the status of this bug report?

Mats (matsben) wrote :

The buggy Gnome DnD implementation still there I guess :-(
I just can't get any further when Gnome even crashes under DnD
operations, at least on my SUSE 10 box. I remember that the spec for
XDnD was interpreted differently by different designers...

sander (s-devrieze) on 2008-03-07
Changed in coccinella:
milestone: 0.96.6 → none
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers