Drag and drop to initiate file transfer

Bug #145251 reported by sander
2
Affects Status Importance Assigned to Milestone
Coccinella
Incomplete
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)
Changed in coccinella:
assignee: nobody → matsben
importance: Undecided → Wishlist
Revision history for this message
Mats (matsben) wrote : Re: [Bug 145251] Re: Drag and drop to initiate file transfer

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.
>

Revision history for this message
sander (s-devrieze) wrote :

Tested under Linux.

Changed in coccinella:
status: New → Fix Committed
Revision history for this message
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
Revision history for this message
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

Revision history for this message
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)

Revision history for this message
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.

Revision history for this message
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

Revision history for this message
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.
>

Revision history for this message
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.

Revision history for this message
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.

Revision history for this message
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?

Revision history for this message
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.
>

Revision history for this message
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.

Revision history for this message
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)
Changed in coccinella:
milestone: 0.96.4 → 0.96.6
Revision history for this message
sander (s-devrieze) wrote :

What's the status of this bug report?

Revision history for this message
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)
Changed in coccinella:
milestone: 0.96.6 → none
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.