Bug 483459 - kate and far2l-wx clipboard interaction not working on Wayland
Summary: kate and far2l-wx clipboard interaction not working on Wayland
Status: RESOLVED INTENTIONAL
Alias: None
Product: kate
Classification: Applications
Component: application (show other bugs)
Version: 23.08.1
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-03-13 16:50 UTC by unxed
Modified: 2024-03-15 17:46 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.