http://bugs.winehq.org/show_bug.cgi?id=16609
Summary: kde 4 drag&drop not working (xdnd failure) Product: Wine Version: unspecified Platform: PC OS/Version: Linux Status: UNCONFIRMED Severity: major Priority: P1 Component: -unknown AssignedTo: wine-bugs@winehq.org ReportedBy: anwetli@hotmail.com
Created an attachment (id=18154) --> (http://bugs.winehq.org/attachment.cgi?id=18154) Wine log for xdnd
Operating System: Kubuntu 8.10 with KDE 4.1 / i386 / nvidia grafics
While running any wine-application its impossible to drag & drop files to. For exampe: Starting up 'notepad.exe' from the wine package. Then drag&drop a text file from konqueror or dolphin (both doesn't work) to the notepad-window. But the file won open up in notepad; but then I got the message from notepad >" could not be found<.
So what happened? On my old system with KDE 3.5.10, everything is working fine... so i looked a bit closer and logged the output of wine for xdnd (see attachement). The problem can be isolated to the following lines:
KDE 3.5.10 wine notepad.exe trace of xDND reveals: trace:xdnd:X11DRV_XDND_SendDropFiles Sending WM_DROPFILES: hWnd(0x0x1002a) 0x1e524c(Z:\home\gizmo\test.txt)
But in KDE 4.1: trace:xdnd:X11DRV_XDND_SendDropFiles Sending WM_DROPFILES: hWnd(0x0x1002a) 0x2454354() <= here missing target !!!
The bug occurs because the target (file) is missing at WM_DROPFILES.
See also http://bugs.kde.org/show_bug.cgi?id=36297
Please someone fix this, because i concerns all wine application and leaves them without drag&drop support on KDE 4. Thanks :-)
http://bugs.winehq.org/show_bug.cgi?id=16609
Vitaliy Margolen vitaliy@kievinfo.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Severity|major |normal Priority|P1 |P2 Version|unspecified |1.1.10
http://bugs.winehq.org/show_bug.cgi?id=16609
Dmitry Timoshkov dmitry@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution| |DUPLICATE
--- Comment #1 from Dmitry Timoshkov dmitry@codeweavers.com 2008-12-24 02:10:14 --- Please search bugs before reporting a new one.
*** This bug has been marked as a duplicate of bug 16306 ***
http://bugs.winehq.org/show_bug.cgi?id=16609
Dmitry Timoshkov dmitry@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #2 from Dmitry Timoshkov dmitry@codeweavers.com 2008-12-24 02:10:32 --- Closing dup.
http://bugs.winehq.org/show_bug.cgi?id=16609
Dan Kegel dank@kegel.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |dank@kegel.com
--- Comment #3 from Dan Kegel dank@kegel.com 2008-12-24 08:26:39 --- That's great info, thanks. Especially that kde bug link.
http://bugs.winehq.org/show_bug.cgi?id=16609
Dan Kegel dank@kegel.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|CLOSED |UNCONFIRMED Resolution|DUPLICATE |
--- Comment #4 from Dan Kegel dank@kegel.com 2008-12-24 08:27:51 --- Maybe we should leave this one open, since it seems to be kde-4 specific.
http://bugs.winehq.org/show_bug.cgi?id=16609
--- Comment #5 from shamousi anwetli@hotmail.com 2009-06-11 02:03:51 --- Hi
You're right: It seems to be KDE 4 specific... Using KDE 4.2.2 the problem is still present: No more drag&drop from Konqueror/Dolphin to wine applications.
Maybe anyone has new informations?
:-)
http://bugs.winehq.org/show_bug.cgi?id=16609
Damjan Jovanovic damjan.jov@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |damjan.jov@gmail.com
--- Comment #6 from Damjan Jovanovic damjan.jov@gmail.com 2009-06-11 14:41:19 --- Hello
I wrote Wine's XDnD -> WM_DROPFILES code.
Please try the following: Run a Wine application that wants a list of files dropped. Drag and drop 2 or more files from a KDE app.
I am guessing you will see all the files except the last one? Also if you drop only 1 file, you'll see nothing?
Please report back.
http://bugs.winehq.org/show_bug.cgi?id=16609
Damjan Jovanovic damjan.jov@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |integration Status|UNCONFIRMED |ASSIGNED Component|-unknown |winex11.drv Summary|kde 4 drag&drop not working |Wine's XDnD should support |(xdnd failure) |text/uri-list lines not | |ending in \r\n Ever Confirmed|0 |1 Difficulty|--- |Hours
--- Comment #7 from Damjan Jovanovic damjan.jov@gmail.com 2009-06-13 13:47:32 --- Since you're not reporting back, I'll see for myself.
My guess was right.
KDE4's Konqeuror (according to Synaptic) / Dolphin (according to itself) provides these:
file:///path/to/file1\r\n file:///path/to/file2
Note the missing \r\n at the end of the last line.
Wine requires the \r\n at the end of each line. When you drag just 1 file, you'll get nothing, because that one line without a trailing \r\n is ignored.
Who's right here?
RFC 2169 Appending A: "3) As for all text/* formats, lines are terminated with a CR LF pair, although clients should be liberal in accepting lines with only one of those characters."
"lines" seems to imply all lines, including the last or only line?
---
What do other file managers do?
XFCE's Thunar seems to provide a file list just like Konqueror:
file:///path/to/file1\r\n file:///path/to/file2
I guess we have to work around it on our side.
Confirming, setting component and difficulty, and assigning to myself.
http://bugs.winehq.org/show_bug.cgi?id=16609
--- Comment #8 from Damjan Jovanovic damjan.jov@gmail.com 2009-06-14 05:27:04 --- Created an attachment (id=21786) --> (http://bugs.winehq.org/attachment.cgi?id=21786) Allow file drops without \r\n on the last line
This patch fixes file drops from KDE4's Dolphin and XFCE's Thunar for me. It's already been sent to wine-patches.
http://bugs.winehq.org/show_bug.cgi?id=16609
Damjan Jovanovic damjan.jov@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED
--- Comment #9 from Damjan Jovanovic damjan.jov@gmail.com 2009-06-15 11:02:20 --- Patch is in latest Git => closing RESOLVED FIXED.
http://bugs.winehq.org/show_bug.cgi?id=16609
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #10 from Alexandre Julliard julliard@winehq.org 2009-06-19 11:03:33 --- Closing bugs fixed in 1.1.24.
http://bugs.winehq.org/show_bug.cgi?id=16609
shamousi anwetli@hotmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|Wine's XDnD should support |f |text/uri-list lines not | |ending in \r\n |
http://bugs.winehq.org/show_bug.cgi?id=16609
shamousi anwetli@hotmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|f |Wine's XDnD should support | |text/uri-list lines not | |ending in \r\n