gujjwal00 / avnc

VNC Client for Android
GNU General Public License v3.0
600 stars 57 forks source link

Clipboard sync does not work from Android to remote #231

Closed graidl closed 2 months ago

graidl commented 2 months ago

When connecting to an Ubuntu remote server running tigervnc and copying some text in another Android app to the clipboard, I can't paste it in the remote session. The other direction works.

gujjwal00 commented 2 months ago

How is tigervnc started? Do you know if its the standalone version, or the scraping one?

Does it always happens? For example, does pasting works if you copy something before connecting to server?

graidl commented 2 months ago

I use the standalone version of tigervnc.

Playing around more, I made the following observations:

I hope this helps. Thank you for your great work!

gujjwal00 commented 2 months ago

Thanks for the testing effort. I think I understand the issue now.

Recent version of AVNC refactored clipboard handling, and it seems to have mistakenly ignored clip texts in HTML format. Please test the following APK, it doesn't contain the offending code and should work in all cases:

https://github.com/gujjwal00/avnc/actions/runs/8556956979/artifacts/1385272272

graidl commented 2 months ago

Yes, I can indeed confirm that this APK resolves the issue. Thanks for the quick fix!

gujjwal00 commented 2 months ago

v2.5.1 is available with the fix.