From unknown Thu Mar 28 18:31:42 2024 X-Loop: owner@bugs.x2go.org Subject: Bug#927: [X2Go-Dev] Bug#927: copy on select overrides Windows clipboard Reply-To: Walid MOGHRABI , 927@bugs.x2go.org Resent-From: Walid MOGHRABI Resent-To: x2go-dev@lists.x2go.org Resent-CC: X2Go Developers X-Loop: owner@bugs.x2go.org Resent-Date: Wed, 09 Dec 2015 16:55:02 +0000 Resent-Message-ID: Resent-Sender: owner@bugs.x2go.org X-X2Go-PR-Message: followup 927 X-X2Go-PR-Package: x2goclient X-X2Go-PR-Keywords: Received: via spool by 927-submit@bugs.x2go.org id=B927.144968000416154 (code B ref 927); Wed, 09 Dec 2015 16:55:02 +0000 Received: (at 927) by bugs.x2go.org; 9 Dec 2015 16:53:24 +0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on ymir.das-netzwerkteam.de X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,HTML_MESSAGE, MIME_QP_LONG_LINE,URIBL_BLOCKED autolearn=unavailable version=3.3.2 X-Greylist: delayed 560 seconds by postgrey-1.34 at ymir.das-netzwerkteam.de; Wed, 09 Dec 2015 17:53:15 CET Received: from zm-01.servicemagic.eu (zm-01.servicemagic.eu [176.31.236.17]) by ymir.das-netzwerkteam.de (Postfix) with ESMTP id 8E0375DA2B; Wed, 9 Dec 2015 17:53:15 +0100 (CET) Received: from localhost (localhost.localdomain [127.0.0.1]) by zm-01.servicemagic.eu (Postfix) with ESMTP id AF79D81CDD811; Wed, 9 Dec 2015 17:43:54 +0100 (CET) X-Amavis-Modified: Mail body modified (using disclaimer) - zm-01.servicemagic.eu X-Virus-Scanned: amavisd-new at servicemagic.eu Received: from zm-01.servicemagic.eu ([127.0.0.1]) by localhost (zm-01.servicemagic.eu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id gfci9FCVKkp2; Wed, 9 Dec 2015 17:43:46 +0100 (CET) Received: from zm-01.servicemagic.eu (localhost.localdomain [127.0.0.1]) by zm-01.servicemagic.eu (Postfix) with ESMTP id 474FF8227CE53; Wed, 9 Dec 2015 17:43:46 +0100 (CET) Date: Wed, 9 Dec 2015 17:43:44 +0100 (CET) From: Walid MOGHRABI To: submit@bugs.x2go.org, 927@bugs.x2go.org Message-ID: <680161831.23192032.1449679424569.JavaMail.root@servicemagic.eu> In-Reply-To: <1412421012.386423.1441361567248.JavaMail.root@servicemagic.eu> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_23192031_1317637385.1449679424569" X-Originating-IP: [195.200.167.70] X-Mailer: Zimbra 7.2.0_GA_2669 (ZimbraWebClient - GC47 (Linux)/7.2.0_GA_2669) ------=_Part_23192031_1317637385.1449679424569 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi,=20 A little "up" on this bug ... this is very very annoying for us and generat= e angryness against x2go which is unfair because this solution gives us so = much more value added feature than before but every users are focusing on t= his one bug because it affect their work all day long.=20 We're willing to push that as much as we can and we're ready to help as muc= h as we can also.=20 We are ready to pay if necessary to put that bugfix on top of the list so p= lease, tell me if this bug is going to be fixed soon :(=20 Best regards,=20 =09Walid MOGHRABI=20 =09Exploitation / Operation=20 =09Id SKYPE : walid_smagic=20 =09 =09 =09 ----- Mail original ----- De: "Walid MOGHRABI" =20 =C3=80: "Ulrich Sibiller" =20 Cc: submit@bugs.x2go.org, 927@bugs.x2go.org=20 Envoy=C3=A9: Vendredi 4 Septembre 2015 12:12:47=20 Objet: Re: [X2Go-Dev] Bug#927: copy on select overrides Windows clipboard= =20 > Just to be sure: What exactly do you refer to as clipboard here? In X11 w= e have PRIMARY and CLIPBOARD, in Windows we have only one Clipboard.=20 > How do you paste in Linux? Middle mouse button or selecting "Paste" from = some menu?=20 All of them.=20 In Windows there is only one clipboard and Linux, there is the PRIMARY and = CLIPBOARD, that's right but the problem here is :=20 * copy something from your local Windows computer (ctrl+c in notepad for ex= ample)=20 * in your remote MATE x2go session, in Pluima or Gedit for example, *select= * part of a text and do a "paste" action (with ctrl+v or the paste action i= n the edit menu, *not middle mouse click*).=20 * at that moment, nothing happen where you would expect the selected text t= o be replaced by the copied text in Windows.=20 Note that if I do the same use case from a linux local desktop to a remote = linux x2go session, it works as expected (the text is replaced), it's only = in doing the same with Windows that it is not working.=20 > I have changed/fixed the clipboard code in NX some months ago. Does downg= rading to nx-libs 3.5.0.27 change the behaviour? Maybe I broke something...= =20 I don't know how to downgrade to this release, I'm using the x2go stable PP= A for the server side (it's running on ubuntu server 14.04 lts amd64 + MATE= 1.8 as the desktop) and Windows 7 SP1 as the client running 4.0.5.0.=20 > Also, do you have any clipboard manager running in the MATE session?=20 at first, none then I installed ClipIt just to see what was happening and d= isable copy on select but it did nothing, the beahviour was identical.=20 In the clipboard manager's history, I can see my copied text from Windows b= ut as soon as I select some text from within my linux x2go session, I can't= paste it.=20 ctrl+v does nothing, paste menu does nothing and even middle click does not= hing as if both clipboards where flushed.=20 As soon as I do another ctrl+v or another selection in the remote x2go sess= ion, I can paste what has been selected/copied.=20 > And it would help to know if this happens for other desktops, too.=20 I only tested it on x2go/MATE in Desktop mode or Published Apps mode. Both = ways gives same results.=20 Walid=20 ----- Mail original -----=20 De: "Ulrich Sibiller" =20 =C3=80: "Walid MOGHRABI" , 927@bugs.x2go.org=20 Cc: submit@bugs.x2go.org=20 Envoy=C3=A9: Mardi 1 Septembre 2015 16:32:43=20 Objet: Re: [X2Go-Dev] Bug#927: copy on select overrides Windows clipboard= =20 On Mon, Aug 24, 2015 at 3:52 PM, Walid MOGHRABI=20 wrote:=20 > Package: x2goclient=20 > Version: 4.0.5.0=20 >=20 > There is a problem when using a x2go session (in both "Publisshed apps" o= r "Desktop / MATE" mode ... didn't tried on other desktops) and trying to d= o=20 bidirectional copy/paste from a Windows client (Windows 7 SP1 /=20 x2goclient 4.0.5.0).=20 > It seems that the "copy on select" features is overriding the primary cli= pboard which makes the copy/paste pretty difficult if not impossible.=20 >=20 > How to reproduce :=20 >=20 > Local : Windows 7 SP1 / x2goclient 4.0.5.0 in Published Apps ou MATE Desk= top mode (but windowed or fullscreen on 1 dedicated screen, not complete fu= llscreen)=20 > Remote : Ubuntu 14.04 / MATE Desktop with x2goserver 4.0.5.0 and x2gomate= -bindings=20 >=20 > From Windows, copy some text in Notepad then, on your x2go session (let's= say with Pluma or Gedit), select some text you want to replace (just selec= t, not copy) and try to do a paste, that won't work and your clipboard now = contains the text that has been selected in the x2go session.=20 Just to be sure: What exactly do you refer to as clipboard here? In=20 X11 we have PRIMARY and CLIPBOARD, in Windows we have only one=20 Clipboard.=20 > You can even paste it in Windows (but strangely, not in Linux where the c= lipboard seems empty).=20 How do you paste in Linux? Middle mouse button or selecting "Paste"=20 from some menu?=20 > This is very very annoying especially for our use case where our x2go ses= sions are used as developpers sessions in Published Apps mode and they do p= lenty of copy/paste all day long.=20 > We moved recently to this infrastructure but this doesn't help its accept= ancy due to this bug.=20 >=20 > I tried to check the "do not use primary clipboard" in the client prefere= nces but this makes the xserver fails to start (see bug #906), I even tried= to add the -noprimary or the -noclipboardprimary that are described here (= http://code.x2go.org/vcxsrv?p=3Dvcxsrv.git;a=3Dblob;f=3Dxorg-server/hw/xwin= /InitOutput.c;h=3D5a3d80f7fe17d2e81f634ba80d0494451653b637;hb=3D934184bfecd= 402aae891b8740d788b486aa7269f#l722) but that dosn't work either, it seems t= hese options are in the usage help message but are not supported at all so = I don't know if using them is helping or not.=20 I have changed/fixed the clipboard code in NX some months ago. Does=20 downgrading to nx-libs 3.5.0.27 change the behaviour? Maybe I broke=20 something...=20 Also, do you have any clipboard manager running in the MATE session?=20 And it would help to know if this happens for other desktops, too.=20 Uli=20 ---=0ADISCLAIMER: This e-mail is private and confidential and may contain proprietary or legally privileged information. It is for the intended recipient only. If you have received this email in error, please notify the author by replying to it and then destroy it. If you are not the intended recipient you must not use, disclose, distribute, copy, print or rely on this e-mail or any attachment. Thank you ------=_Part_23192031_1317637385.1449679424569 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable <= div style=3D'font-family: arial,helvetica,sans-serif; font-size: 10pt; colo= r: #333333'>Hi,

A little "up" on this bug ... this is ve= ry very annoying for us and generate angryness against x2go which is unfair= because this solution gives us so much more value added feature than befor= e but every users are focusing on this one bug because it affect their work= all day long.
We're willing to push that as much as we can and w= e're ready to help as much as we can also.
We are ready to pay if= necessary to put that bugfix on top of the list so please, tell me if this= bug is going to be fixed soon :(

Best regards,
=09=09=09
=09=09=09=09 =09=09=09=09
=09=09=09=09=09 =09=09=09=09=09=09 =09=09=09=09=09=09=09 =09=09=09=09=09=09 =09=09=09=09=09=09 =09=09=09=09=09=09=09 =09=09=09=09=09=09 =09=09=09=09=09=09 =09=09=09=09=09=09=09 =09=09=09=09=09=09 =09=09=09=09=09=09 =09=09=09=09=09=09=09 =09=09=09=09=09=09 =09=09=09=09=09=09 =09=09=09=09=09=09=09 =09=09=09=09=09=09 =09=09=09=09=09=09 =09=09=09=09=09=09=09 =09=09=09=09=09=09 =09=09=09=09=09 =09=09=09=09
=09=09=09=09=09=09=09=09Walid MOGHRABI =09=09=09=09=09=09=09
=09=09=09=09=09=09=09=09Exploitation / O= peration =09=09=09=09=09=09=09
=09=09=09=09=09=09=09=09Id SKYPE : walid= _smagic =09=09=09=09=09=09=09
=09=09=09=09=09=09=09=09 =09=09=09=09=09=09=09
 
=09=09=09=09=09=09=09=09 =09=09=09=09=09=09=09=09 =09=09=09=09=09=09=09=09 =09=09=09=09=09=09=09=09 =09=09=09=09=09=09=09
=09=09=09=09


De: "Walid MOGHRABI" <w.moghrabi@servicemagic.eu>
= =C3=80: "Ulrich Sibiller" <uli42@gmx.de>
Cc: submit@= bugs.x2go.org, 927@bugs.x2go.org
Envoy=C3=A9: Vendredi 4 Septembr= e 2015 12:12:47
Objet: Re: [X2Go-Dev] Bug#927: copy on select ove= rrides Windows clipboard

> Just to be sure: What exactly do you r= efer to as clipboard here? In X11 we have PRIMARY and CLIPBOARD, in Windows= we have only one Clipboard.
> How do you paste in Linux? Middle mou= se button or selecting "Paste" from some menu?

All of them.
In Wi= ndows there is only one clipboard and Linux, there is the PRIMARY and CLIPB= OARD, that's right but the problem here is :
* copy something from your = local Windows computer (ctrl+c in notepad for example)
* in your remote = MATE x2go session, in Pluima or Gedit for example, *select* part of a text = and do a "paste" action (with ctrl+v or the paste action in the edit menu, = *not middle mouse click*).
* at that moment, nothing happen where you wo= uld expect the selected text to be replaced by the copied text in Windows.<= br>
Note that if I do the same use case from a linux local desktop to a = remote linux x2go session, it works as expected (the text is replaced), it'= s only in doing the same with Windows that it is not working.

> I= have changed/fixed the clipboard code in NX some months ago. Does downgrad= ing to nx-libs 3.5.0.27 change the behaviour? Maybe I broke something...
I don't know how to downgrade to this release, I'm using the x2go sta= ble PPA for the server side (it's running on ubuntu server 14.04 lts amd64 = + MATE 1.8 as the desktop) and Windows 7 SP1 as the client running 4.0.5.0.=

> Also, do you have any clipboard manager running in the MATE se= ssion?

at first, none then I installed ClipIt just to see what was = happening and disable copy on select but it did nothing, the beahviour was = identical.
In the clipboard manager's history, I can see my copied text = from Windows but as soon as I select some text from within my linux x2go se= ssion, I can't paste it.
ctrl+v does nothing, paste menu does nothing an= d even middle click does nothing as if both clipboards where flushed.
As= soon as I do another ctrl+v or another selection in the remote x2go sessio= n, I can paste what has been selected/copied.

> And it would help= to know if this happens for other desktops, too.

I only tested it = on x2go/MATE in Desktop mode or Published Apps mode. Both ways gives same r= esults.

Walid

----- Mail original -----

De: "Ulrich S= ibiller" <uli42@gmx.de>
=C3=80: "Walid MOGHRABI" <w.moghrabi@s= ervicemagic.eu>, 927@bugs.x2go.org
Cc: submit@bugs.x2go.org
Envo= y=C3=A9: Mardi 1 Septembre 2015 16:32:43
Objet: Re: [X2Go-Dev] Bug#927:= copy on select overrides Windows clipboard

On Mon, Aug 24, 2015 at= 3:52 PM, Walid MOGHRABI
<w.moghrabi@servicemagic.eu> wrote:
= > Package: x2goclient
> Version: 4.0.5.0
>
> There = is a problem when using a x2go session (in both "Publisshed apps" or "Deskt= op / MATE" mode ... didn't tried on other desktops) and trying to do
bi= directional copy/paste from a Windows client (Windows 7 SP1 /
x2goclien= t 4.0.5.0).
> It seems that the "copy on select" features is overrid= ing the primary clipboard which makes the copy/paste pretty difficult if no= t impossible.
>
> How to reproduce :
>
> Local = : Windows 7 SP1 / x2goclient 4.0.5.0 in Published Apps ou MATE Desktop mode= (but windowed or fullscreen on 1 dedicated screen, not complete fullscreen= )
> Remote : Ubuntu 14.04 / MATE Desktop with x2goserver 4.0.5.0 and= x2gomate-bindings
>
> From Windows, copy some text in Notepa= d then, on your x2go session (let's say with Pluma or Gedit), select some t= ext you want to replace (just select, not copy) and try to do a paste, that= won't work and your clipboard now contains the text that has been selected= in the x2go session.

Just to be sure: What exactly do you refer to= as clipboard here? In
X11 we have PRIMARY and CLIPBOARD, in Windows we= have only one
Clipboard.

> You can even paste it in Windows= (but strangely, not in Linux where the clipboard seems empty).

How= do you paste in Linux? Middle mouse button or selecting "Paste"
from s= ome menu?

> This is very very annoying especially for our use ca= se where our x2go sessions are used as developpers sessions in Published Ap= ps mode and they do plenty of copy/paste all day long.
> We moved re= cently to this infrastructure but this doesn't help its acceptancy due to t= his bug.
>
> I tried to check the "do not use primary clipboa= rd" in the client preferences but this makes the xserver fails to start (se= e bug #906), I even tried to add the -noprimary or the -noclipboardprimary = that are described here (http://code.x2go.org/vcxsrv?p=3Dvcxsrv.git;a=3Dblo= b;f=3Dxorg-server/hw/xwin/InitOutput.c;h=3D5a3d80f7fe17d2e81f634ba80d049445= 1653b637;hb=3D934184bfecd402aae891b8740d788b486aa7269f#l722) but that dosn'= t work either, it seems these options are in the usage help message but are= not supported at all so I don't know if using them is helping or not.
=
I have changed/fixed the clipboard code in NX some months ago. Does downgrading to nx-libs 3.5.0.27 change the behaviour? Maybe I broke
so= mething...

Also, do you have any clipboard manager running in the M= ATE session?

And it would help to know if this happens for other de= sktops, too.

Uli


=
DISCLAIMER: This e-mail is private and confidential and may contain proprietary or legally privileged information. It is for the intended recipient only. If you have received this email in error, please notify the author by replying to it and then destroy it. If you are not the intended recipient you must not use, disclose, distribute, copy, print or rely on this e-mail or any attachment. Thank you
= ------=_Part_23192031_1317637385.1449679424569--