Bug 8505 - Clipboard sync unreliable with KDE in session
Summary: Clipboard sync unreliable with KDE in session
Status: CLOSED FIXED
Alias: None
Product: ThinLinc
Classification: Unclassified
Component: VNC (show other bugs)
Version: trunk
Hardware: PC Unknown
: P2 Normal
Target Milestone: 4.19.0
Assignee: Bugzilla mail exporter
URL:
Keywords: adaha_tester, relnotes
Depends on: 8485
Blocks:
  Show dependency treegraph
 
Reported: 2025-01-30 16:57 CET by Pierre Ossman
Modified: 2025-02-24 16:38 CET (History)
1 user (show)

See Also:
Acceptance Criteria:
MUST: * Clipboard sync must work reliably on the most popular Linux desktop environments SHOULD: * Clipboard sync must work reliably on most Linux desktop environments


Attachments

Description Pierre Ossman cendio 2025-01-30 16:57:30 CET
If you are using KDE in the ThinLinc session, then you can get an issue where the keyboard from the client isn't always properly transferred.

Issue was reported upstream here:

https://github.com/TigerVNC/tigervnc/issues/1586

And fixed here:

https://github.com/TigerVNC/tigervnc/commit/8d2739fa71eaf7a28d63ac62583e8087c66a5247

This also prevents server applications from modifying the clipboard in the background, which is probably a safer behaviour.
Comment 1 Adam Halim cendio 2025-02-24 11:23:36 CET
Tested server build 3925 on RHEL 9.

On a Windows 11 machine, I was able to reproduce the issue reported upstream [1] in a GNOME and KDE session:

1. Copy "abc" on Windows
2. Paste in session -> "abc"gets pasted.
3. Copy "def" on Windows
4. Paste in session -> "abc" gets pasted.
5. Copy "def" on Windows.
6. Paste in session -> "def" gets pasted.

I did not see this issue on Xfce, and could not reproduce it with a client on F40 GNOME Wayland.

Using client build 3816, the issue went away on GNOME and KDE, and the clipboard was synchronized as expected.

[1] https://github.com/TigerVNC/tigervnc/issues/1586
Comment 2 Adam Halim cendio 2025-02-24 12:41:42 CET
Also tested the Windows client with a MATE session, and could not see this issue. 

On macOS, I could not reproduce the issue at all (GNOME/KDE/Xfce/MATE).
Comment 3 Adam Halim cendio 2025-02-24 12:52:58 CET
> MUST:
>   * Clipboard sync must work reliably
>     on the most popular Linux desktop 
>     environments
Worked reliably for me, I could no longer reproduce the issue.
> SHOULD:
>   * Clipboard sync must work reliably
>     on most Linux desktop environments
From what I can tell, the issue was only seen on KDE/GNOME. I did not test other desktops such as Cinnamon/Ubuntu/LXDE.

Looked through the commit, looks good.

Note You need to log in before you can comment on or make changes to this bug.