I am using this windows client to access Ubuntu:
When I reconnect, clipboard usually works, but some time later it usually stop working. But clipboard I mean copying in windows and pasting in Windows. This is version of my server: 4.1.0.3-0~1708~ubuntu18.04.1. Are there any related known issues? I was not able to google anything, but this happens regularly and reproduces for other developers in my team.
I'm Stefan Baur, X2Go's Community Manager.
This is actually a long-standing bug with X2Go that is particularly hard to track down, as the conditions to trigger it are not quite clear yet.
It seems you had posted a bounty for this issue, but it was removed again? I'm posting here to let you know we're aware of the issue and are currently looking for sponsors to get it resolved. Some have already stepped up.
If you want to chip in (again), let us know by subscribing to the X2Go-User Mailing list (https://lists.x2go.org/listinfo/x2go-user - note that this is a double-opt-in list, you need to subscribe and click the confirmation link in the E-Mail sent to you before you are able to post) and posting a message with a Subject like "X2Go Clipboard Bounty" or similar - that should catch my attention.
I am facing the same issue. I am running PyCharm on Ubuntu (Server) and notepad++ on Windows (Client) and want to copy between them.
To me it seems that the clipboard gets locked by x2go if something is in it on the Ubuntu side.
The following workarounds often do the job if copy&paste is not working any more:
Windows to Windows : (Works almost 100%) Cut any text in Ubuntu and paste in Ubuntu. Now, you can go to Windows and cut and paste whatever you like. This works for me.
Windows to Ubuntu: Close Application (Pycharm) and x2go and reconnect - but who wants to that all the time :-(
Setting "Do not use primary clipboard" in x2go client settings (and then restarting client) worked for me
make sure that the clipboard setting is not commented out in: /etc/x2go/x2goagent.options
for me it usually works, but I've noticed a size limitation: when I try to copy large text from Ubuntu I cannot paste it in Windows... is this size limit configurable?
I manage to copy a figure out when I set "Copy and paste from client to server" in "Clipboard mode" in "Session preferences".
If session preference is already set to bi-directorial and it does not work. Then close the x2go session. Set preference to only one way. Start x2do. Try it out. close x2go. Set preference to bi directorial. Start x2go and try both ways. For me copy/paste started working both ways.