From unknown Fri Mar 29 05:39:40 2024 X-Loop: owner@bugs.x2go.org Subject: Bug#581: VirtualBox Clipboard Sharing does not work when accessing the host over X2Go Reply-To: Michael DePaulo , 581@bugs.x2go.org Resent-From: Michael DePaulo Resent-To: x2go-dev@lists.x2go.org Resent-CC: X2Go Developers X-Loop: owner@bugs.x2go.org Resent-Date: Mon, 25 Aug 2014 03:00:02 +0000 Resent-Message-ID: Resent-Sender: owner@bugs.x2go.org X-X2Go-PR-Message: report 581 X-X2Go-PR-Package: nx-libs X-X2Go-PR-Keywords: Received: via spool by submit@bugs.x2go.org id=B.14089354785023 (code B); Mon, 25 Aug 2014 03:00:02 +0000 Received: (at submit) by bugs.x2go.org; 25 Aug 2014 02:57:58 +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,FREEMAIL_FROM, T_DKIM_INVALID autolearn=ham version=3.3.2 Received: from mail-wi0-f170.google.com (mail-wi0-f170.google.com [209.85.212.170]) by ymir.das-netzwerkteam.de (Postfix) with ESMTPS id 759125DCAA for ; Mon, 25 Aug 2014 04:57:57 +0200 (CEST) Received: by mail-wi0-f170.google.com with SMTP id f8so3090166wiw.5 for ; Sun, 24 Aug 2014 19:57:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=Io5zNXp6+j+SIVvZeLHqE3RHJZYQswnQc70+KcmPbrQ=; b=xAuOPq/g3wtgZWdFg8BUxAVi09cPJND2QXOoVXEfbkELl5Jo11wDwKdnAECRb7oCxW 8uftXfnRnnsgmuv04oa29u+75GIpIl1aHRIXobqoc1dc7CvXbnfB7fKAojk0ZzkKfjco Ajh+4kHooEz0aDHrprSeOpW6U75NaIgG7dwIaLC24tPkBIK/HuRaXLLq8Jv4Wa37yAM6 /i2inKr3V5Apkm4ypwXn4x3qXefhHHSq8uhLnI5Hgm2VBPZTcc6aJhiSdXLe5YnscE8n arqviH2yw8fQDf0hGhLq73MN823e2PHflCXEwFCTkmby30qKJyOvBm1U4nWYQ/s0Xig9 X1Qg== MIME-Version: 1.0 X-Received: by 10.180.37.77 with SMTP id w13mr12268010wij.78.1408935477163; Sun, 24 Aug 2014 19:57:57 -0700 (PDT) Received: by 10.180.238.66 with HTTP; Sun, 24 Aug 2014 19:57:57 -0700 (PDT) Date: Sun, 24 Aug 2014 22:57:57 -0400 Message-ID: From: Michael DePaulo To: submit@bugs.x2go.org Content-Type: text/plain; charset=UTF-8 Package: nx-libs Version: 3.5.0.27 Severity: normal If you run a VirtualBox VM with its display running under X2Go, the VM's clipboard sharing fails to work in either direction. You cannot copy and paste text between the VM and an app running under X2Go server, nor can you copy and paste text between the VM and an app running on the X2Go Client system. (I believe VirtualBox VMs use SDL to interact with the X server, which in this case is nxagent. This differs from the VirtualBox GUI, which is written in QT.) Specifically, when the X sesssion starts on the guest, a VirtualBox-provided script for X calls "VBoxClient --clipboard" to start the clipboard service. The service runs as the user logged into the guest. However, this service fails to stay running, and thus the clipboard sharing does not work. If you launch the VirtualBox VM on the local X.org X server, the guest's clipboard service stays running and clipboard sharing works. You can also launch the VM in RDP headless mode from x2go (so the VM does not render its display to any nxagent). In this use case, the clipboard service stays running and clipboard sharing works. The strange part is that the configuration of the host affects the behavior of the guest. It makes sense though because it's a bug in the guest's code to integrate with the host. Also, when you do call "VBoxClient --clipboard", it returns 0. And if you call it after the X11 session has already started, the problem still occurs. In x2goclient, I tried turning on and off the following setting, but it had no effect: Options -> Settings -> X-Server settings -> do not use primary clipboard My theory is that this is a bug in nx-libs, and that the bug is probably related to nx-libs being forked from such an old X.org codebase. It is worth looking into whether other SDL apps have clipboard trouble with X2Go on Ubuntu 14.04. (It's also worth testing an older release of Ubuntu as the host OS, since it would have an older release of SDL.) Host system: OS: Ubuntu 14.04.1 64-bit with latest bugfix & security updates nxagent: 2:3.5.0.27-0~446~ubuntu14.04.1 x2goserver: 4.0.1.15-0~847~ubuntu14.04.1 x2goserver-xsession: 4.0.1.15-0~847~ubuntu14.04.1 VirtualBox 4.3.14 (from download.virtualbox.org) "Shared Clipboard" is set to "Bidirectional" for the VM $ cat /etc/x2go/x2goagent.options | grep -v '^#' | grep -v '^$' X2GO_NXAGENT_DEFAULT_OPTIONS="" X2GO_NXAGENT_DEFAULT_OPTIONS+=" -extension XFIXES" X2GO_NXAGENT_DEFAULT_OPTIONS+=" -nolisten tcp" Guest OS: Ubuntu 12.04.5 64-bit with precise HWE stack, the virtual kernel, and all the latest bugfix & security updates OS-provided XFCE virtualbox-guest-dkms: 4.1.12-dfsg-2ubuntu0.6 virtualbox-guest-utils: 4.1.12-dfsg-2ubuntu0.6 virtualbox-guest-x11: 4.1.12-dfsg-2ubuntu0.6 Configured according to: https://github.com/mikedep333/duckpan-vagrant/tree/duckduckhack-vm The aforementioned script is: /etc/X11/Xsession.d/98vboxadd-xclient (I'm sure a different script would be used for distros like CentOS which lack the /etc/X11/Xsession.d/ folder). Client system: Windows 8.1 64-bit with Update 1 and all the minor/monthly updates available X2GoClient 4.0.2.1+hotfix1+build3 From unknown Fri Mar 29 05:39:40 2024 X-Loop: owner@bugs.x2go.org Subject: Bug#581: Possibly related Virtualbox issue using shared clipboard Reply-To: John Roberts , 581@bugs.x2go.org Resent-From: John Roberts Resent-To: x2go-dev@lists.x2go.org Resent-CC: X2Go Developers X-Loop: owner@bugs.x2go.org Resent-Date: Fri, 18 Jun 2021 16:30:01 +0000 Resent-Message-ID: Resent-Sender: owner@bugs.x2go.org X-X2Go-PR-Message: followup 581 X-X2Go-PR-Package: nx-libs X-X2Go-PR-Keywords: References: Received: via spool by 581-submit@bugs.x2go.org id=B581.162403377229707 (code B ref 581); Fri, 18 Jun 2021 16:30:01 +0000 Received: (at 581) by bugs.x2go.org; 18 Jun 2021 16:29:32 +0000 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on ymir.das-netzwerkteam.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=3.0 tests=BAYES_40,DKIM_SIGNED, DKIM_VALID,HTML_MESSAGE,SPF_HELO_NONE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 Received: from ipo2.cc.utah.edu (ipo2.cc.utah.edu [155.97.144.12]) by ymir.das-netzwerkteam.de (Postfix) with ESMTPS id 884335DB0D for <581@bugs.x2go.org>; Fri, 18 Jun 2021 18:29:16 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=utah.edu; i=@utah.edu; q=dns/txt; s=UniversityOfUtah; t=1624033756; x=1655569756; h=from:to:subject:date:message-id:mime-version; bh=MSlkVkI6USw9C3GyJoub+4eqhqwZXyvz25J49L6u04o=; b=GfZqf7uDzn/s9iHUyLJn/44gUJyw9KtrUmkZyXgxLUyoAqUIRNiCjDOi YWCPD1rKbkimd8NlWdARsLp8ZJXrwRSMUTOPe/CqEK+eBVyPUWiEXqYWP 4jMeImW0rPtzymz/KiZzzYwljKZiSYYRJDSbd1EzMGM+vzHeZB67MAeYb RlBG4xVjey6Qefb8/jeXdXFuW42usVBkhdorsYz/Q7YWM/4V0eL3ACEAU zQ/7eX5Gxr6ivwirgY2gJ1fiYXAjs3xijMMUQsFq2dYVgEr62XxKuo0W1 2M5rF81IRf+NbV3x/JHNyKZdEDzC6xOjs/XGeDbE8LlO7dp2WUrftajSO A==; IronPort-SDR: nDxe73v7VDnHhsMMRU89EJHsrARCfHeiwr2hQrpZ+nKvtH8GkwhHoL1sHP/HsZIMGkmZB+PSBh s9DMc17L3pxBOGKS+ouElpgNZvWQH38TSn7JQVk0wo6AxNkkF5gONT0J8Z4CEYPSCRnW0NIilE 0DFtO6MoqOUtW3PpHWOXnoUQ4yFByKITLjF97iS7HTOJsqgwQn3Xo1ewMPDxJo2+1ecvf+X4o9 hM2QZHWp2lb2W0lvxKuB6AR4aylvGmAJ326nPFcGSu7eZOGMkD+hI+GFA6jAjg9WvVp48Jwt8T ABk= X-IronPort-AV: E=Sophos;i="5.83,284,1616479200"; d="scan'208,217";a="459227944" Received: from isoep1.iso.utah.edu (HELO UMAILX-M201.xds.umail.utah.edu) ([172.26.129.7]) by ipo2smtp.utah.edu with ESMTP; 18 Jun 2021 10:29:10 -0600 Received: from UMAILX-M206.xds.umail.utah.edu (155.97.144.206) by UMAILX-M201.xds.umail.utah.edu (155.97.144.201) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.10; Fri, 18 Jun 2021 10:29:10 -0600 Received: from UMAILX-M206.xds.umail.utah.edu ([155.97.144.206]) by UMAILX-M206.xds.umail.utah.edu ([155.97.144.206]) with mapi id 15.01.2242.010; Fri, 18 Jun 2021 10:29:10 -0600 From: John Roberts To: "581@bugs.x2go.org" <581@bugs.x2go.org> Thread-Topic: Possibly related Virtualbox issue using shared clipboard Thread-Index: AQHXZF8Qq723NFr9xki/6GOPwPsBtA== Date: Fri, 18 Jun 2021 16:29:09 +0000 Message-ID: <15e132d0-6c28-d7f8-886f-86b8ea10c61d@hsc.utah.edu> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: user-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.10.1 x-originating-ip: [10.104.241.165] Content-Type: multipart/alternative; boundary="_000_15e132d06c28d7f8886f86b8ea10c61dhscutahedu_" MIME-Version: 1.0 X-CFilter-Loop: Reflected --_000_15e132d06c28d7f8886f86b8ea10c61dhscutahedu_ Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 SGVsbG8sDQoNCkFmdGVyIHRoZSBWaXJ0dWFsYm94IHVwZGF0ZSBmcm9tIHRoZSB2ZXJzaW9uIDUg dG8gdmVyc2lvbiA2IHNlcmllczoNCg0KICAqICAgSW52b2tpbmcgY29weS9wYXN0ZSBvcGVyYXRp b25zIHdoZW4gc2hhcmVkIGNsaXBib2FyZCBpcyB0dXJuZWQgb24gY2F1c2VzIHRoZSBndWVzdCBt YWNoaW5lIHRvIGltbWVkaWF0ZWx5IGFib3J0DQogICogICBFdmVuIHdpdGggc2hhcmVkIGNsaXBi b2FyZCB0dXJuZWQgb2ZmIGluIFZpcnR1YWxib3ggc2V0dGluZ3MsIGd1ZXN0IG1hY2hpbmVzIGdl bmVyYXRlIGFuIEFib3J0IHN0YXR1cyBpbiBWaXJ0dWFsYm94IGR1cmluZyBhIG5vcm1hbCBzaHV0 ZG93bg0KICAqICAgL3Zhci9sb2cvbWVzc2FnZXMgaW5kaWNhdGVzIGEgc2VnbWVudGF0aW9uIGZh dWx0IGluIFZpcnR1YWxib3ggc2hjbGlwYm9hcmQgYXBwbGljYXRpb24NCiAgKiAgIFRoZXNlIGFi b3J0cyBkbyBub3Qgb2NjdXIgd2hlbiBydW5uaW5nIFZpcnR1YWxib3ggb3ZlciBhIHNzaC1YIHR1 bm5lbA0KDQpJJ20gd29uZGVyaW5nIGlmIHRoaXMgaXMgcmVsYXRlZCB0byB0aGUgb2xkZXIgbngt bGlicyBwcm9ibGVtIHdpdGggc2hhcmVkIGNsaXBib2FyZCBzdWJtaXR0ZWQgYnkgbWlrZWRlcDMz My4NCg0KeDJnbyBjbGllbnQ6IHYgNC4xLjIuMiAoUXQgNS4xNS4yKSBydW5uaW5nIG9uIEZlZG9y YSAzMw0KDQp4MmdvIHNlcnZlcjogOiA0LjEuMC4zLCBueHByb3h5IDMuNS45OS4yNg0KDQpKb2hu Lg0K --_000_15e132d06c28d7f8886f86b8ea10c61dhscutahedu_ Content-Type: text/html; charset="utf-8" Content-ID: <8969230BAE1908498502A8BB16567279@utah.edu> Content-Transfer-Encoding: base64 PGh0bWw+DQo8aGVhZD4NCjxtZXRhIGh0dHAtZXF1aXY9IkNvbnRlbnQtVHlwZSIgY29udGVudD0i dGV4dC9odG1sOyBjaGFyc2V0PXV0Zi04Ij4NCjwvaGVhZD4NCjxib2R5Pg0KSGVsbG8sPG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