[X2Go-User] Cross-session copy/paste issue
Jonah Benton
jonah at jonah.com
Tue Feb 23 14:51:34 CET 2021
Ah, apologies, debuginfo was it- I misunderstood those to mean debugging
packages.
Reinstalled
sudo rpm -i --force nxagent-3.5.99.26-0.0build1.fc33.x86_64.rpm
nx-libs-3.5.99.26-0.0build1.fc33.x86_64.rpm
and copy-paste between new servers works great, and from old server to new
server works great. New server to old server doesn't work, as expected.
Super cool- thank you!
Will post here if I run into problems.
Is there something I can do to facilitate getting this into Fedora or it
will happen when x2go team cuts a new release?
On Tue, Feb 23, 2021 at 2:18 AM Ulrich Sibiller <uli42 at gmx.de> wrote:
> You need to install that on the server side. And you need to start a new
> session. You should be able to copy/paste anything including images and
> richtext with that code, so please test that to ensure you have the right
> version running.
>
> Ah, no, I just saw what is wrong: you only installed the debuginfo
> packages!
>
> Uli
>
> Jonah Benton <jonah at jonah.com> schrieb am Di., 23. Feb. 2021, 05:35:
>
>> Thank you Uli. Slight modification:
>>
>> git archive -o ~/rpmbuild/SOURCES/nx-libs-3.5.99.26.tar.gz --prefix=nx-libs-3.5.99.26/
>> pr/many_clipboard_changes
>>
>> Build worked fine.
>>
>> Installed:
>>
>> sudo rpm -i --force nxagent-debuginfo-3.5.99.26-0.0build1.fc33.x86_64.rpm
>> nx-libs-debuginfo-3.5.99.26-0.0build1.fc33.x86_64.rpm
>>
>> I logged out of two of my sessions, then restarted them- am still not
>> able to copy paste between them.
>>
>> Should that now work?
>>
>> If so, is there something I can pull out of the logs?
>>
>>
>> On Mon, Feb 22, 2021 at 3:32 PM Ulrich Sibiller <uli42 at gmx.de> wrote:
>>
>>> On Sun, Feb 21, 2021 at 7:22 PM Jonah Benton <jonah at jonah.com> wrote:
>>>
>>> > Thank you- concur about images- in the past, copy-paste of them only
>>> worked within a session, not across. My workaround was to paste-save to
>>> /tmp on the host and then open saved image from another session. But nearly
>>> all copy-paste for me is text / URLs.
>>>
>>> Ah, ok. But that's not really comfortable or seamless...
>>>
>>> > Re versions of nxagent:
>>>
>>> So you did an update from 3.5.99.24 to 3.5.99.26. There were minimal
>>> changes in the range (only 5 commits):
>>> eb7b9773 nxagent: make nxagentXFixesInfo.Initialized a Boolean
>>> fec462906 nxagent: treat all Traps as Booleans everywhere
>>> b07b6c537 Clipboard.c: fix bug in special optimization for nested
>>> settings
>>> ebee6af05 Clipboard.c: add missing ifdefs
>>> edb5a918a Clipboard.c: fix missing )
>>> ae037701f nxagent: fix stack smashing
>>>
>>> > I can try to downgrade if there is an earlier 3.5.99 on Fedora 33-
>>> will that matter?
>>>
>>> Probably not, but why not try it?
>>>
>>> > Happy to give a go at a replacement build.
>>>
>>> Ok, here's the branch you should compile:
>>> https://github.com/uli42/nx-libs/tree/pr/many_clipboard_fixes
>>>
>>> Generally you need to do this:
>>> 1. git clone
>>> https://github.com/uli42/nx-libs/tree/pr/many_clipboard_fixes
>>> 2. cd nx-libs
>>> 3. mkdir -p ~/rpmbuild/{SOURCES,RPMS,SRPMS,OTHER,BUILD}
>>> 4. git archive -o ~/rpmbuild/SOURCES/nx-libs-3.5.99.26.tar.gz
>>> --prefix=nx-libs-3.5.99.26/ 3.6.x
>>> 5. cp --preserve=time nx-libs.spec ~/rpmbuild/SOURCES
>>> 6. rpmbuild -ba ~/rpmbuild/SOURCES/nx-libs.spec
>>> 7. install the resulting nxagent rpm
>>>
>>> I do not have a fedora at hand so I could not test this. In case of
>>> problems you can also try the spec file from the fedora build.
>>>
>>> > I did just note two additional behaviors-
>>> >
>>> > 1. cross-session paste does *eventually* complete
>>> >
>>> > -copy of text 1 in session 1
>>> > -attempt to paste in session 2
>>> > -observe session 2 window freeze
>>> > -switch to host window
>>> > -paste into host window (success)
>>> > -select and recopy in host window
>>> > -switch back to session 2- paste of text 1 had completed
>>> >
>>> > So the paste took about 5 seconds
>>>
>>> My branch adds some caching of clipboard communication which speeds up
>>> operations like this considerably.
>>>
>>> > 2. cross-session paste payload can be replaced in flight
>>> >
>>> > -copy of text 1 in session 1
>>> > -switch to session 2
>>> > -attempt to paste (text 1 into session 2)
>>> > -observe session 2 window freeze
>>> > -switch to another window in session 2
>>> > -select and copy text 2 (in another window in session 2)
>>> > -switch to the session 2 window attempting to complete the original
>>> paste
>>> > -note that the paste completed- but using text 2, not text 1
>>>
>>> That's one of the big changes in my branch. Previously the code was
>>> sharing some variables for all clipboards and the behaviour you are
>>> describing here is just the result of that.
>>>
>>> Uli
>>>
>>>
>>> >
>>> > Thanks again!
>>> >
>>> > Jonah
>>> >
>>> >
>>> > On Sun, Feb 21, 2021 at 7:59 AM Ulrich Sibiller <uli42 at gmx.de> wrote:
>>> >>
>>> >> Well, I am wondering how you managed to reliably copy/paste images.
>>> This is something the current code does not support.
>>> >>
>>> >> Regarding the switch to non-working: you probably have updated the
>>> nxagent package on your server. Please check what was the old version and
>>> what you have installed now. You could try to downgrade again. But please
>>> post the versions here anyway.
>>> >>
>>> >> I am still working at a massive clipboard rework which is close to
>>> being finished (I hope...). If you are able to compile it on your own you
>>> can test it. I can assist with instructions
>>> >>
>>> >> Uli
>>> >>
>>> >> Jonah Benton <jonah at jonah.com> schrieb am Sa., 20. Feb. 2021, 20:30:
>>> >>>
>>> >>> Hi folks,
>>> >>>
>>> >>> Let me first say thank you to X2Go maintainers- I happened upon X2Go
>>> about 6 months ago when figuring out how to switch my workflow from Fedora
>>> VMs on MacOS to distinct desktop environments on Fedora. It is such a
>>> profoundly excellent tool. Thank you for your efforts.
>>> >>>
>>> >>> Now- to describe a problem that just cropped up, hoping someone can
>>> help me debug.
>>> >>>
>>> >>> I have been running Fedora 32 - XFCE on a Thinkpad, simultaneously
>>> running 7 distinct local X2Go sessions under 7 different host users. Each
>>> session's window resides within its own XFCE logical desktop, and I switch
>>> between them with the switch desktop hotkeys. X2Go sessions are configured
>>> to support bidirectional copy/paste, and generally it works seamlessly to
>>> copy text or images from apps in one session's window to another or to/from
>>> the host.
>>> >>>
>>> >>> Last night I upgraded to Fedora 33, with the requisite updates to
>>> X2Go. Now, copy/paste is reliably broken in one area:
>>> >>>
>>> >>> * from host into any session still is fine
>>> >>> * from session into host still is fine
>>> >>> * from a session into the same session still is fine
>>> >>> * from one session into another session no longer works
>>> >>>
>>> >>> On failed pastes- where the copy was from one session and the paste
>>> is another session- when the paste recipient is a browser (Chromium,
>>> Firefox, whatever), sometimes the recipient browser tab temporarily locks
>>> up trying (and failing) to retrieve the paste material.
>>> >>>
>>> >>> All X2Go sessions are still configured for bi-directional copy-paste.
>>> >>>
>>> >>> [admin at localhost ~]$ x2goclient --version
>>> >>> x2go-WARNING-1> English language requested, not loading translator.
>>> >>> x2go-WARNING-1> English language requested, not loading translator.
>>> >>> 4.1.2.2
>>> >>>
>>> >>> [admin at localhost ~]$ x2goversion
>>> >>> : 3.2.0.0
>>> >>> : 4.1.0.3
>>> >>> : 4.1.0.3
>>> >>> : 3.2.0.0
>>> >>> : 4.1.0.3
>>> >>> : 3.5.99.26
>>> >>> : 4.1.0.3
>>> >>>
>>> >>> Any thoughts on tracking down the issue?
>>> >>>
>>> >>> Thanks again,
>>> >>>
>>> >>> Jonah
>>> >>>
>>> >>>
>>> >>>
>>> >>>
>>> >>> _______________________________________________
>>> >>> x2go-user mailing list
>>> >>> x2go-user at lists.x2go.org
>>> >>> https://lists.x2go.org/listinfo/x2go-user
>>>
>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.x2go.org/pipermail/x2go-user/attachments/20210223/22a73ade/attachment.htm>
More information about the x2go-user
mailing list