Bug 483459

Summary: kate and far2l-wx clipboard interaction not working on Wayland
Product: [Applications] kate Reporter: unxed
Component: applicationAssignee: KWrite Developers <kwrite-bugs-null>
Status: RESOLVED INTENTIONAL    
Severity: normal CC: cullmann
Priority: NOR    
Version: 23.08.1   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:

Description unxed 2024-03-13 16:50:54 UTC
On Ubuntu 23.10 in Wayland session you can't copy text from kate to [far2l](https://github.com/elfmz/far2l) (Far Manager Linux port) GUI (wxWidgets-based) version.

The reason is that kate expose text only as`text/plain;charset=utf-8`, but wxWidgets only understand `STRING` and `UTF8_STRING` in some aspects of its clipboard API.

Please add support for `UTF8_STRING` format also.

1. Create new file in kate
2. Type any text
3. Copy to clipboard
4. Try to paste to far2l wxWidgets GUI.

See also:
https://github.com/elfmz/far2l/issues/2053
https://github.com/wxWidgets/wxWidgets/issues/24391#issuecomment-1989195956
https://github.com/telegramdesktop/tdesktop/issues/27569
https://bugreports.qt.io/browse/QTBUG-123176
https://github.com/rickyrockrat/parcellite/issues/89
https://gitlab.gnome.org/GNOME/gnome-text-editor/-/issues/657
https://github.com/qbittorrent/qBittorrent/issues/20547
Comment 1 Christoph Cullmann 2024-03-15 17:46:41 UTC
We use QClipboard e.g. via QApplication::clipboard()->setText.
We will no add extra compat code.
If wxWidgets only understands a different type, that should be fixed there.