Xpra: Ticket #2342: --clipboard does not work since v3.0

Clipboard sharing does not work with xpra v3.0-r22234 and higher. That applies to phyton2-xpra as well as to python3-xpra. It works with xpra v2.5.2-r22875

Used options for server and client: --clipboard-direction=both --clipboard=yes.

System: Debian buster with winswitch beta repository. Special setup: x11docker: server and client run on same system, but different X servers. A clipboard tool in background is xfce4-clipman, but disabling it makes no difference.



Sat, 29 Jun 2019 13:52:12 GMT - Antoine Martin: owner changed

Clipboard sharing does not work with xpra v3.0-r22234 and higher.

What's the latest version of the v3.0 beta that you've tried? How does it "not work"? No copying at all? In any direction? Any errors in the logs?

There were a number of updates and fixes, some are tracked in #812 and #2338. The latest potentially relevant fixes are in r23005.


Sat, 29 Jun 2019 14:04:57 GMT - mviereck:

What's the latest version of the v3.0 beta that you've tried?

xpra v3.0-r23019

How does it "not work"? No copying at all? In any direction?

Not copying at all in both directions. The clipboard works only within the vfb itself.

Any errors in the logs?

==> /home/lauscher/.cache/x11docker/jess-firefox-9d49a1/xpraclient.log <==
2019-06-29 15:59:47,143 Warning: CLIPBOARD selection request for 'TARGETS' timed out
==> /home/lauscher/.cache/x11docker/jess-firefox-9d49a1/xpraserver.log <==
2019-06-29 15:59:47,144 client @10.613 Warning: CLIPBOARD selection request for 'TARGETS' timed out
2019-06-29 15:59:47,145 client @10.614  request 0 at time=0
==> /home/lauscher/.cache/x11docker/jess-firefox-9d49a1/xpraclient.log <==
2019-06-29 15:59:47,145  request 0 at time=0
2019-06-29 15:59:47,653 Warning: CLIPBOARD selection request for 'TARGETS' timed out
2019-06-29 15:59:47,654  request 1 at time=0
==> /home/lauscher/.cache/x11docker/jess-firefox-9d49a1/xpraserver.log <==
2019-06-29 15:59:47,655 client @11.123 Warning: CLIPBOARD selection request for 'TARGETS' timed out
2019-06-29 15:59:47,656 client @11.124  request 1 at time=0
==> /home/lauscher/.cache/x11docker/jess-firefox-9d49a1/xpraclient.log <==
2019-06-29 15:59:48,196 Warning: CLIPBOARD selection request for 'TARGETS' timed out
2019-06-29 15:59:48,197  request 2 at time=0
==> /home/lauscher/.cache/x11docker/jess-firefox-9d49a1/xpraserver.log <==
2019-06-29 15:59:48,198 client @11.666 Warning: CLIPBOARD selection request for 'TARGETS' timed out
2019-06-29 15:59:48,200 client @11.667  request 2 at time=0
==> /home/lauscher/.cache/x11docker/jess-firefox-9d49a1/xpraclient.log <==
2019-06-29 15:59:49,858 Warning: CLIPBOARD selection request for 'TARGETS' timed out
2019-06-29 15:59:49,859  request 3 at time=0
==> /home/lauscher/.cache/x11docker/jess-firefox-9d49a1/xpraserver.log <==
2019-06-29 15:59:49,860 client @13.328 Warning: CLIPBOARD selection request for 'TARGETS' timed out
2019-06-29 15:59:49,862 client @13.329  request 3 at time=0
==> /home/lauscher/.cache/x11docker/jess-firefox-9d49a1/xpraclient.log <==
2019-06-29 15:59:50,365 Warning: CLIPBOARD selection request for 'TARGETS' timed out
2019-06-29 15:59:50,366  request 4 at time=0
==> /home/lauscher/.cache/x11docker/jess-firefox-9d49a1/xpraserver.log <==
2019-06-29 15:59:50,366 client @13.835 Warning: CLIPBOARD selection request for 'TARGETS' timed out
2019-06-29 15:59:50,369 client @13.836  request 4 at time=0
==> /home/lauscher/.cache/x11docker/jess-firefox-9d49a1/xpraclient.log <==
2019-06-29 15:59:52,582 Warning: CLIPBOARD selection request for 'TARGETS' timed out
2019-06-29 15:59:52,583  request 5 at time=0
==> /home/lauscher/.cache/x11docker/jess-firefox-9d49a1/xpraserver.log <==
2019-06-29 15:59:52,583 client @16.052 Warning: CLIPBOARD selection request for 'TARGETS' timed out
2019-06-29 15:59:52,585 client @16.053  request 5 at time=0
==> /home/lauscher/.cache/x11docker/jess-firefox-9d49a1/xpraclient.log <==
2019-06-29 15:59:53,090 Warning: CLIPBOARD selection request for 'TARGETS' timed out
2019-06-29 15:59:53,091  request 6 at time=0
==> /home/lauscher/.cache/x11docker/jess-firefox-9d49a1/xpraserver.log <==
2019-06-29 15:59:53,091 client @16.560 Warning: CLIPBOARD selection request for 'TARGETS' timed out
2019-06-29 15:59:53,094 client @16.561  request 6 at time=0
==> /home/lauscher/.cache/x11docker/jess-firefox-9d49a1/xpraclient.log <==
2019-06-29 16:00:00,102 Warning: CLIPBOARD selection request for 'TARGETS' timed out
==> /home/lauscher/.cache/x11docker/jess-firefox-9d49a1/xpraserver.log <==
2019-06-29 16:00:00,103 client @23.572 Warning: CLIPBOARD selection request for 'TARGETS' timed out
==> /home/lauscher/.cache/x11docker/jess-firefox-9d49a1/xpraclient.log <==
2019-06-29 16:00:00,103  request 7 at time=0
==> /home/lauscher/.cache/x11docker/jess-firefox-9d49a1/xpraserver.log <==
2019-06-29 16:00:00,103 client @23.573  request 7 at time=0
==> /home/lauscher/.cache/x11docker/jess-firefox-9d49a1/xpraclient.log <==
2019-06-29 16:00:00,608 Warning: CLIPBOARD selection request for 'TARGETS' timed out
2019-06-29 16:00:00,609  request 8 at time=0
==> /home/lauscher/.cache/x11docker/jess-firefox-9d49a1/xpraserver.log <==
2019-06-29 16:00:00,611 client @24.078 Warning: CLIPBOARD selection request for 'TARGETS' timed out
2019-06-29 16:00:00,613 client @24.079  request 8 at time=0

Further clips on server or client side do not trigger new log entries.


Mon, 22 Jul 2019 16:04:29 GMT - Antoine Martin:

Can you give me simple steps to reproduce?


Mon, 22 Jul 2019 21:09:04 GMT - mviereck:

Finally I could track it down: If the xpra client runs with --xsettings=no, the clipboard sharing does not work anymore.

Sorry, I should have checked with simple setups first.

Edit: Example to reproduce:

 xpra start :30 --xvfb="/usr/bin/Xvfb :30" --start "mousepad" --daemon=no --clipboard=yes
xpra attach :30 --xsettings=no

Tue, 30 Jul 2019 10:23:47 GMT - Antoine Martin: owner, priority, status changed

I can reproduce. Must be some refactoring gone wrong: xsettings and clipboard share the same X11 selection mechanism.


Tue, 30 Jul 2019 13:52:26 GMT - Antoine Martin: status changed; resolution set

Fixed in r23369. (a much smaller fix was possible - but this one is "better")


Sat, 17 Aug 2019 20:07:43 GMT - mviereck:

I can confirm the fix with v3.0-r23522, clipboard works again with --xsettings=no. Thank you!


Sat, 23 Jan 2021 05:48:44 GMT - migration script:

this ticket has been moved to: https://github.com/Xpra-org/xpra/issues/2342