Synergy 剪贴板(复制/粘贴)不能与 glipper 一起使用吗?

Synergy 剪贴板(复制/粘贴)不能与 glipper 一起使用吗?

(只是想记录这一点;随后是自我回答)

我在两台 Ubuntu 机器之间安装了 QuickSynergy,设置如下:

  • Ubuntu 10.04.4 LTS (lucid) - 协同服务器,带鼠标
  • Ubuntu 11.04(natty)- synergy 客户端(想要使用服务器鼠标)

我几年前就使用过这个设置 - 并且一切运行正常。

这些天我又回到了这样的设置 - 虽然鼠标指针可以在屏幕之间正常切换,但客户端上的复制/粘贴功能却无法工作完全地:也就是说,我在任何应用程序中选择一些文本(从scitefirefox)并复制(通过 Ctrl-C;或通过右键单击/从上下文菜单中复制) - 然后我尝试粘贴(通过 Ctrl-V;或通过右键单击/从上下文菜单中复制),什么都没发生。甚至,在执行复制操作后,右键单击上下文菜单会显示“粘贴”菜单项变灰(禁用)——就好像剪贴板上根本没有任何数据一样!

因此,我首先检查了两台机器上的 synergy 版本,结果发现它们不匹配(尽管以前可能也出现过这种情况,当时我使用相同的设置,并且一切正常)。因此,我synergy在两台机器上都使用以下方法进行了更新协同作用:gogo [ppa:trebelnik-stefina/synergy](我已使用mavericklucid机器的二进制文件)。现在它们都显示相同的版本;例如对于客户端:

$ synergyc --version
synergyc 1.4.11, protocol version 1.4
...
$ synergys --version
synergys 1.4.11, protocol version 1.4

但是,复制/粘贴问题仍然存在。

自从我上次synergy成功使用连接以来,这些机器上的剪贴板唯一可能发生变化的是,我在两台机器上都安装了glipper剪贴板小程序。这可能是问题所在吗?

答案1

是的 - 确实,glipper这是个问题:然而,仅有的如果它正在运行synergy 服务器机器!对我来说很奇怪,因为它会影响本地客户端机器上的复制/粘贴...

实际上,现在我已经在客户端机器上synergy运行了服务器机器glipper,但没有复制粘贴,一切似乎都运行正常!glippersynergy

我尝试获取一些日志;这大致是glipper在服务器机器上工作时生成的消息:

问题情况的客户端日志(glipper在服务器上运行):

$ synergyc -f --debug DEBUG 192.168.1.XX
INFO: Synergy 1.4.11 Client on Linux 2.6.38-16-generic #67-Ubuntu SMP Thu Sep 6 
....
INFO: leaving screen
INFO: entering screen
DEBUG: recv clipboard 0 size=21
DEBUG: open clipboard 0
DEBUG: empty clipboard 0
DEBUG: grabbed clipboard 0
DEBUG: add 9 bytes to clipboard 0 format: 0
DEBUG: close clipboard 0
DEBUG: recv clipboard 1 size=21
DEBUG: open clipboard 1
DEBUG: empty clipboard 1
DEBUG: grabbed clipboard 1
DEBUG: add 9 bytes to clipboard 1 format: 0
DEBUG: close clipboard 1

DEBUG: lost clipboard 1 ownership at time 758675
DEBUG: lost clipboard 1 ownership at 758675
DEBUG: recv grab clipboard 1
DEBUG: open clipboard 1
DEBUG: empty clipboard 1
DEBUG: grabbed clipboard 1
DEBUG: close clipboard 1
DEBUG: lost clipboard 1 ownership at time 761802
DEBUG: lost clipboard 1 ownership at 761802
DEBUG: recv grab clipboard 1
DEBUG: open clipboard 1
DEBUG: empty clipboard 1
DEBUG: grabbed clipboard 1
DEBUG: close clipboard 1
INFO: leaving screen
DEBUG: adopting new buffer
DEBUG: discarding 1 event(s)
DEBUG: closed display
NOTE: stopped client

问题情况的服务器日志(glipper在服务器上运行):

$ synergys -f --debug DEBUG -c ~/.quicksynergy/synergy.conf
INFO: Synergy 1.4.11 Server on Linux 2.6.32-44-generic #98-Ubuntu SMP Mon Sep 24 17:32:45 UTC 2012 i686
...
INFO: switch from "SynSERVER" to "SynCLIENT" at 1023,319
INFO: leaving screen
DEBUG: open clipboard 0
DEBUG: ICCCM fill clipboard 0
DEBUG:   available targets: TIMESTAMP (404), TARGETS (402), MULTIPLE (403), SAVE_TARGETS (441), UTF8_STRING (277), COMPOUND_TEXT (469), TEXT (502), STRING (31), text/plain;charset=utf-8 (503), text/plain (499)
DEBUG:   added format 0 for target UTF8_STRING (277) (9 bytes)
DEBUG: close clipboard 0
INFO: screen "SynSERVER" updated clipboard 0
DEBUG: open clipboard 1
DEBUG: ICCCM fill clipboard 1
DEBUG:   available targets: TIMESTAMP (404), TARGETS (402), MULTIPLE (403), UTF8_STRING (277), COMPOUND_TEXT (469), TEXT (502), STRING (31), text/plain;charset=utf-8 (503), text/plain (499)
DEBUG:   added format 0 for target UTF8_STRING (277) (9 bytes)
DEBUG: close clipboard 1
INFO: screen "SynSERVER" updated clipboard 1
DEBUG: send clipboard 0 to "SynCLIENT" size=21
DEBUG: send clipboard 1 to "SynCLIENT" size=21
DEBUG: received client "SynCLIENT" grabbed clipboard 1 seqnum=7
INFO: screen "SynCLIENT" grabbed clipboard 1 from "SynSERVER"
DEBUG: open clipboard 1
DEBUG: empty clipboard 1
DEBUG: grabbed clipboard 1
DEBUG: close clipboard 1
DEBUG: lost clipboard 1 ownership at time 809607
DEBUG: lost clipboard 1 ownership at 809607
INFO: screen "SynSERVER" grabbed clipboard 1 from "SynCLIENT"
DEBUG: send grab clipboard 1 to "SynCLIENT"
DEBUG: received client "SynCLIENT" grabbed clipboard 1 seqnum=7
INFO: screen "SynCLIENT" grabbed clipboard 1 from "SynSERVER"
DEBUG: open clipboard 1
DEBUG: empty clipboard 1
DEBUG: grabbed clipboard 1
DEBUG: close clipboard 1
DEBUG: lost clipboard 1 ownership at time 812691
DEBUG: lost clipboard 1 ownership at 812691
INFO: screen "SynSERVER" grabbed clipboard 1 from "SynCLIENT"
DEBUG: send grab clipboard 1 to "SynCLIENT"
NOTE: client "SynCLIENT" has disconnected
...

 

一旦glipper在服务器机器上取出(注意,killall glipper在 Lucid 上不起作用,但在 Natty 上起作用 - 因此在 Lucid 上,我必须执行ps axf | grep glipper,然后kill 1234在进程号上执行),然后复制粘贴再次起作用 - 在这种情况下,这里有一些日志:

客户端日志(正常情况):

$ synergyc -f --debug DEBUG 192.168.1.XX
INFO: Synergy 1.4.11 Client on Linux 2.6.38-16-generic #67-Ubuntu SMP Thu Sep 6 
....
NOTE: started client
NOTE: connecting to '192.168.1.XX': 192.168.1.XX:24800
DEBUG: open clipboard 0
DEBUG: empty clipboard 0
DEBUG: grabbed clipboard 0
DEBUG: close clipboard 0
DEBUG: open clipboard 1
DEBUG: empty clipboard 1
DEBUG: grabbed clipboard 1
DEBUG: close clipboard 1
NOTE: connected to server
DEBUG: lost clipboard 1 ownership at time 997135
DEBUG: lost clipboard 1 ownership at 997135
DEBUG: open clipboard 1
DEBUG: ICCCM fill clipboard 1
DEBUG:   available targets: TIMESTAMP (373), TARGETS (371), MULTIPLE (372), text/html (581), text/_moz_htmlcontext (588), text/_moz_htmlinfo (589), UTF8_STRING (315), COMPOUND_TEXT (510), TEXT (529), STRING (31), text/x-moz-url-priv (590)
DEBUG:   added format 2 for target text/html (581) (966 bytes)
DEBUG:   added format 0 for target UTF8_STRING (315) (433 bytes)
DEBUG: close clipboard 1
DEBUG: lost clipboard 0 ownership at time 998704
DEBUG: lost clipboard 0 ownership at 998704
DEBUG: open clipboard 0
DEBUG: ICCCM fill clipboard 0
DEBUG:   available targets: TIMESTAMP (373), TARGETS (371), MULTIPLE (372), SAVE_TARGETS (499), text/html (581), text/_moz_htmlcontext (588), text/_moz_htmlinfo (589), UTF8_STRING (315), COMPOUND_TEXT (510), TEXT (529), STRING (31), text/x-moz-url-priv (590)
DEBUG:   added format 2 for target text/html (581) (966 bytes)
DEBUG:   added format 0 for target UTF8_STRING (315) (433 bytes)
DEBUG: close clipboard 0
^CDEBUG: adopting new buffer
DEBUG: discarding 1 event(s)
DEBUG: closed display
NOTE: stopped client

服务器日志(正常情况):

$ synergys -f --debug DEBUG -c /home/USERNAME/.quicksynergy/synergy.conf
INFO: Synergy 1.4.11 Server on Linux 2.6.32-44-generic #98-Ubuntu SMP Mon Sep 24
...
NOTE: accepted client connection
DEBUG: received client "SynCLIENT" info shape=0,0 1024x600 at 642,225
NOTE: client "SynCLIENT" has connected
DEBUG: received client "SynCLIENT" grabbed clipboard 1 seqnum=0
INFO: screen "SynCLIENT" grabbed clipboard 1 from "SynSERVER"
DEBUG: open clipboard 1
DEBUG: empty clipboard 1
DEBUG: grabbed clipboard 1
DEBUG: close clipboard 1
DEBUG: received client "SynCLIENT" clipboard 1 seqnum=0, size=935
INFO: screen "SynCLIENT" updated clipboard 1
DEBUG: open clipboard 1
DEBUG: empty clipboard 1
DEBUG: grabbed clipboard 1
DEBUG: add 433 bytes to clipboard 1 format: 0
DEBUG: add 482 bytes to clipboard 1 format: 2
DEBUG: close clipboard 1
DEBUG: received client "SynCLIENT" grabbed clipboard 0 seqnum=0
INFO: screen "SynCLIENT" grabbed clipboard 0 from "SynSERVER"
DEBUG: open clipboard 0
DEBUG: empty clipboard 0
DEBUG: grabbed clipboard 0
DEBUG: close clipboard 0
DEBUG: received client "SynCLIENT" clipboard 0 seqnum=0, size=935
INFO: screen "SynCLIENT" updated clipboard 0
DEBUG: open clipboard 0
DEBUG: empty clipboard 0
DEBUG: grabbed clipboard 0
DEBUG: add 433 bytes to clipboard 0 format: 0
DEBUG: add 482 bytes to clipboard 0 format: 2
DEBUG: close clipboard 0
NOTE: client "SynCLIENT" has disconnected

 

请注意,客户端报告“丢失剪贴板 1 所有权“无论复制/粘贴是否有效;我所看到的复制/粘贴有效和非有效情况之间的区别是,在有效情况下,客户端显示如下消息”ICCCM 填充剪贴板 1“ 和 ”可用目标:TIMESTAMP(373),...“。

好吧,除此之外,我不能说我太了解这些日志 - 但我希望它们可以帮助某人:)
干杯!

相关内容