Xpra-org / xpra

Persistent remote applications for X11; screen sharing for X11, MacOS and MSWindows.
https://xpra.org/
GNU General Public License v2.0
1.94k stars 165 forks source link

--clipboard does not work since v3.0 #2342

Closed totaam closed 5 years ago

totaam commented 5 years ago

Issue migrated from trac ticket # 2342

component: clipboard | priority: blocker | resolution: fixed

2019-06-29 14:39:22: mviereck created the issue


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.

totaam commented 5 years ago

2019-06-29 14:52:12: antoine changed owner from antoine to mviereck

totaam commented 5 years ago

2019-06-29 14:52:12: antoine commented


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.

totaam commented 5 years ago

2019-06-29 15:04:58: mviereck commented


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.

totaam commented 5 years ago

2019-07-22 17:04:30: antoine commented


Can you give me simple steps to reproduce?

totaam commented 5 years ago

2019-07-22 22:09:05: mviereck commented


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
totaam commented 5 years ago

2019-07-30 11:23:48: antoine changed priority from major to blocker

totaam commented 5 years ago

2019-07-30 11:23:48: antoine changed status from new to assigned

totaam commented 5 years ago

2019-07-30 11:23:48: antoine changed owner from mviereck to antoine

totaam commented 5 years ago

2019-07-30 11:23:48: antoine commented


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

totaam commented 5 years ago

2019-07-30 14:52:27: antoine changed status from assigned to closed

totaam commented 5 years ago

2019-07-30 14:52:27: antoine set resolution to fixed

totaam commented 5 years ago

2019-07-30 14:52:27: antoine commented


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

totaam commented 5 years ago

2019-08-17 21:07:43: mviereck commented


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