http://bugs.winehq.org/show_bug.cgi?id=31216
Bug #: 31216 Summary: Cut and paste: gnome terminal overrides Wine clipboard? Product: Wine Version: 1.3.15 Platform: x86 OS/Version: Linux Status: NEW Severity: normal Priority: P2 Component: -unknown AssignedTo: wine-bugs@winehq.org ReportedBy: dank@kegel.com Classification: Unclassified
A Windows user running Centos 5 in VMWare, with Tanner S-Edit inside the Centos instance in Wine (1.3.15?) and Microsoft Office running natively in Windows, noticed the following problem:
Copying from S-Edit (on Linux) and pasting into Office (on Windows) worked fine. However, if you run Gnome Terminal, select some text in it, and do Copy, then copy from S-Edit, and then paste into Office, the text that is pasted is the text that was copied earlier from Gnome Terminal. If you then close Gnome Terminal and paste into Office, the S-Edit text you copied earlier is pasted.
So it seems Gnome Terminal is offering some data type that Wine isn't, and VMWare's clipboard integration prefers that data type.
The little windows clipboard viewer at http://www.codeguru.com/cpp/w-p/clipboard/externallinks/article.php/c9155/Cl... might be helpful in diagnosing this, I'll ask the user to try that.
I haven't found a similar simple clipboard viewer which shows details of what's being offered on the various clipboard-like mechanisms (as opposed to a clipboard manager, which tries to hide details) for Linux yet.
http://bugs.winehq.org/show_bug.cgi?id=31216
--- Comment #1 from Dan Kegel dank@kegel.com 2012-07-14 08:20:09 CDT --- xcopy -t (from http://svn.tartarus.org/sgt/utils/xcopy/ ) sounds like it might be helpful, too.
http://bugs.winehq.org/show_bug.cgi?id=31216
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |download CC| |austinenglish@gmail.com Severity|normal |trivial
--- Comment #2 from Austin English austinenglish@gmail.com 2012-07-16 13:54:18 CDT --- I've noticed something similar with Notepad++, Gedit, and TightVNC.
I frequently vnc into a few different machines. TightVNC supports copy/paste from the host to the client. With Wine, this breaks. For example, if I copy some text from a native program (Gedit), then switch to TightVNC, open Notepad, and paste, it works. If I copy some text from Notepad++ (under Wine) and paste it inside the VNC client, it instead pastes whatever was last copied under a native application to the clipboard.
Copying from Notepad++ to Gedit and vice versa, works, however. I can also copy from Notepad++ to Gedit, re-copy, then paste over TightVNC (but this is a pain, obviously).
http://bugs.winehq.org/show_bug.cgi?id=31216
--- Comment #3 from Dan Kegel dank@kegel.com 2012-07-24 13:41:48 CDT --- After selecting and copying Dan in Terminal, and then mode in s-edit, running attached shell script outputs:
==== With -b Got atom TARGETS
Got atom UTF8_STRING containing: mode Got atom COMPOUND_TEXT containing: mode Got atom STRING containing: mode Got atom WCF_OEMTEXT containing: mode ==== Without -b Got atom TIMESTAMP
Got atom TARGETS
Got atom MULTIPLE containing: Got atom UTF8_STRING containing: Dan Got atom COMPOUND_TEXT containing: Dan Got atom TEXT containing: Dan Got atom STRING containing: Dan Got atom text/plain;charset=utf-8 containing: Dan Got atom text/plain;charset=UTF-8 containing: Dan Got atom text/plain containing: Dan
So Wine is only setting one of the two selections. Adding the registry key
[HKEY_CURRENT_USER\Software\Wine\X11 Driver] "UsePrimarySelection"="1"
makes the problem go away.
Should Wine always put stuff in both the primary and secondary selection buffer?
http://bugs.winehq.org/show_bug.cgi?id=31216
--- Comment #4 from Dan Kegel dank@kegel.com 2012-07-24 13:42:54 CDT --- Created attachment 41137 --> http://bugs.winehq.org/attachment.cgi?id=41137 shell script to dump both primary and secondary selection buffers
http://bugs.winehq.org/show_bug.cgi?id=31216
Qian Hong fracting@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |fracting@gmail.com
http://bugs.winehq.org/show_bug.cgi?id=31216
--- Comment #5 from Qian Hong fracting@gmail.com 2012-11-10 13:33:59 CST --- This bug also affect copy from Wine to Virtualbox guest:
Host OS: Ubuntu 12.04 + wine 1.5.17 VM: Virtualbox 4.2 Guest OS: Ubuntu 12.10
guest addtion installed copy/paste enabled
[HKEY_CURRENT_USER\Software\Wine\X11 Driver] "UsePrimarySelection"="1"
Works for me.
https://bugs.winehq.org/show_bug.cgi?id=31216
Ken Sharp imwellcushtymelike@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |source
--- Comment #6 from Ken Sharp imwellcushtymelike@gmail.com --- Is this still an issue in Wine 1.7.45 or later? Can it be fixed in any way?
https://bugs.winehq.org/show_bug.cgi?id=31216
Ken Sharp imwellcushtymelike@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Attachment #41137|application/octet-stream |application/x-sh mime type| |
https://bugs.winehq.org/show_bug.cgi?id=31216
--- Comment #7 from Austin English austinenglish@gmail.com --- (In reply to Qian Hong from comment #5)
This bug also affect copy from Wine to Virtualbox guest:
Host OS: Ubuntu 12.04 + wine 1.5.17 VM: Virtualbox 4.2 Guest OS: Ubuntu 12.10
guest addtion installed copy/paste enabled
[HKEY_CURRENT_USER\Software\Wine\X11 Driver] "UsePrimarySelection"="1"
Works for me.
Doesn't help for me, with wine-1.9.6-195-gd04a548 and RealVNC/gedit/Notepad++
Yes, still present.
https://bugs.winehq.org/show_bug.cgi?id=31216
Pau Coma Ramirez paucoma@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |paucoma@gmail.com
--- Comment #8 from Pau Coma Ramirez paucoma@gmail.com --- Hi All, I have spotted this same/similar bug and have found some kinda workaround, not sure if I should post my research here or should start a new bug ? Other related BugReports/Discussions I have found are the following [Bug 31216](https://bugs.winehq.org/show_bug.cgi?id=31216) [Bug 47344](https://bugs.winehq.org/show_bug.cgi?id=47344) [WineHq Forums discussion on Copy/Paste](https://forum.winehq.org/viewtopic.php?t=8334) [StackExchange askUbuntu : wine Clipboard sync question](https://askubuntu.com/questions/433739/clipboard-syncronization-between-wine...)
I will continue gathering info and testing but I will need some help with getting logs when starting the app through unity .desktop shortcut launcher as this seems to be the use case when it doesn't work. Starting from a terminal window does not lead to the problem.
Cheers
https://bugs.winehq.org/show_bug.cgi?id=31216
--- Comment #9 from Pau Coma Ramirez paucoma@gmail.com --- I managed to get some proper logs and found a way to consistently reproduce the problem and have documented it in a new [Bug 50598](https://bugs.winehq.org/show_bug.cgi?id=50598)