X2Go Bug report logs - #927
copy on select overrides Windows clipboard

version graph

Package: x2goclient; Maintainer for x2goclient is X2Go Developers <x2go-dev@lists.x2go.org>; Source for x2goclient is src:x2goclient.

Reported by: Walid MOGHRABI <w.moghrabi@servicemagic.eu>

Date: Mon, 24 Aug 2015 14:00:02 UTC

Severity: normal

Tags: pending

Found in version 4.0.5.0

Fixed in version 4.0.5.1

Done: X2Go Release Manager <git-admin@x2go.org>

Bug is archived. No further changes may be made.

Full log


🔗 View this message in rfc822 format

X-Loop: owner@bugs.x2go.org
Subject: Bug#927: [X2Go-Dev] Bug#927: copy on select overrides Windows clipboard
Reply-To: Walid MOGHRABI <w.moghrabi@servicemagic.eu>, 927@bugs.x2go.org
Resent-From: Walid MOGHRABI <w.moghrabi@servicemagic.eu>
Resent-To: x2go-dev@lists.x2go.org
Resent-CC: X2Go Developers <x2go-dev@lists.x2go.org>
X-Loop: owner@bugs.x2go.org
Resent-Date: Fri, 04 Sep 2015 10:20:01 +0000
Resent-Message-ID: <handler.927.B927.144136186914829@bugs.x2go.org>
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.144136186914829
          (code B ref 927); Fri, 04 Sep 2015 10:20:01 +0000
Received: (at 927) by bugs.x2go.org; 4 Sep 2015 10:17:49 +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,MIME_QP_LONG_LINE,
	URIBL_BLOCKED autolearn=unavailable version=3.3.2
X-Greylist: delayed 300 seconds by postgrey-1.34 at ymir.das-netzwerkteam.de; Fri, 04 Sep 2015 12:17:48 CEST
Received: from zm-01.servicemagic.eu (zm-01.servicemagic.eu [176.31.236.17])
	by ymir.das-netzwerkteam.de (Postfix) with ESMTP id CADBD3BC49
	for <927@bugs.x2go.org>; Fri,  4 Sep 2015 12:17:48 +0200 (CEST)
Received: from localhost (localhost.localdomain [127.0.0.1])
	by zm-01.servicemagic.eu (Postfix) with ESMTP id 1ADAD80ABE1EC;
	Fri,  4 Sep 2015 12:12:48 +0200 (CEST)
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 e8G6NKQOEnaP; Fri,  4 Sep 2015 12:12:47 +0200 (CEST)
Received: from zm-01.servicemagic.eu (localhost.localdomain [127.0.0.1])
	by zm-01.servicemagic.eu (Postfix) with ESMTP id 62F45803C03F2;
	Fri,  4 Sep 2015 12:12:47 +0200 (CEST)
Date: Fri, 4 Sep 2015 12:12:47 +0200 (CEST)
From: Walid MOGHRABI <w.moghrabi@servicemagic.eu>
To: Ulrich Sibiller <uli42@gmx.de>
Cc: submit@bugs.x2go.org, 927@bugs.x2go.org
Message-ID: <1412421012.386423.1441361567248.JavaMail.root@servicemagic.eu>
In-Reply-To: <CANVnVYKqMqwp6peayTCmzAU5Gq_pqaoKgEb4s89tCJKnz-NSug@mail.gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Originating-IP: [195.200.167.70]
X-Mailer: Zimbra 7.2.0_GA_2669 (ZimbraWebClient - GC45 (Linux)/7.2.0_GA_2669)
> 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. 
> How do you paste in Linux? Middle mouse button or selecting "Paste" from some menu?

All of them.
In Windows there is only one clipboard and Linux, there is the PRIMARY and CLIPBOARD, 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 would expect the selected text to be replaced by the copied text in Windows.

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 downgrading 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 stable 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 session? 

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 session, I can't paste it.
ctrl+v does nothing, paste menu does nothing and 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 session, 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 results.

Walid

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

De: "Ulrich Sibiller" <uli42@gmx.de> 
À: "Walid MOGHRABI" <w.moghrabi@servicemagic.eu>, 927@bugs.x2go.org 
Cc: submit@bugs.x2go.org 
Envoyé: 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 "Desktop / MATE" mode ... didn't tried on other desktops) and trying to do 
bidirectional copy/paste from a Windows client (Windows 7 SP1 / 
x2goclient 4.0.5.0). 
> It seems that the "copy on select" features is overriding the primary clipboard which makes the copy/paste pretty difficult if not 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 Notepad then, on your x2go session (let's say with Pluma or Gedit), select some text 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 some menu? 

> This is very very annoying especially for our use case where our x2go sessions are used as developpers sessions in Published Apps mode and they do plenty of copy/paste all day long. 
> We moved recently to this infrastructure but this doesn't help its acceptancy due to this bug. 
> 
> I tried to check the "do not use primary clipboard" in the client preferences 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=vcxsrv.git;a=blob;f=xorg-server/hw/xwin/InitOutput.c;h=5a3d80f7fe17d2e81f634ba80d0494451653b637;hb=934184bfecd402aae891b8740d788b486aa7269f#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 
something... 

Also, do you have any clipboard manager running in the MATE session? 

And it would help to know if this happens for other desktops, 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

Send a report that this bug log contains spam.


X2Go Developers <owner@bugs.x2go.org>. Last modified: Thu Nov 21 18:46:12 2024; Machine Name: ymir.das-netzwerkteam.de

X2Go Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.