-
Notifications
You must be signed in to change notification settings - Fork 174
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Copy-Paste between far2l wx and Telegram Desktop not working under Wayland on Ubuntu 23.10 #2053
Comments
@elfmz can we use ttyx for clipboard access on Wayland systems if xwayland and ttyx are available until upstream bug is fixed? |
Corresponding Telegram Desktop issue: |
From wxWidgets bug tracker: OK, this happens because we request STRING format but Telegram only provides data in text/plain;charset=utf-8 and text/plain formats (for comparison, most of the other programs, including e.g. Firefox from which I'm posting this or Vim where I'm actually typing this, include those as well as STRING, TEXT, COMPOUND_TEXT and UTF8_STRING). Anyhow, the fix should be straightforward, we should accept data in text/plain format as text too. I'll try to find time to implement this. From Telegram Desktop bug tracker: I think this info would be more valuable to Qt. All tdesktop does is instantiates a QTextEdit and Qt provides the menu with the default actions, shortcut handling and etc. |
Corresponding Qt issue: |
Exact reason:
wx know nothing about |
Same bug with GNOME Text editor: btw, @elfmz can we work it around by providing support for |
Same bug with qBittorrent: |
Same bug with KDE default text editor: |
Fix for wx: |
Workaround on our side: |
Проверил под native Ubuntu 23.10 + Wayland.
Копирование из телеграмма в fa2l gui заработало:
Копирование из fa2l gui в телеграмм заработало:
|
На всякий случай уточню, что речь идёт о проверке фикса из #2070 |
В чате пишут: Бага с вставкой именно в телегу (у меня x11 desktop) из любого текста последнего мастера far2l (хоть имени файла по Ctrl-Ins, хоть фрагмента из редактора) вставленное завершается непонятным концевым символом: Проверил со старой февральской версией far2l (до последних фиксов) - вставляет без этого символа Возможно из-за including ending NUL char в ca3ccdc Проверьте, у кого есть время, проявляется ли у вас. |
Также из чата про этот лишний символ:
|
@atolismesh просьбочка перепроверить ещё раз, не сломалось ли чего. |
После недавних исправлений проблемы с буфером обмена под Wayland должны были уйти. У кого они оставались, перепроверьте, пожалуйста. After recent fixes, problems with the clipboard under Wayland should have gone away. Whoever had them, please check now. |
Там ещё в wsl[g] обнаружились проблемы с кодировками при работе с буфером обмена. Поправили. У кого такое было, перепроверьте, пожалуйста, на свежем мастере. In wsl[g] were discovered problems with encodings when working with the clipboard. They are now fixed. If anyone has had such problems, please check again in recent master. |
Originally noticed here:
#1350 (comment)
Possibly related issue:
#1658 (comment)
Workaround 1:
#1350 (comment)
Workaround 2:
Run
(source: #1350 (comment))
Workaround 3:
Use kitty or any other OSC52-supporting terminal (like Windows Terminal, for example) and TTY or TTY|X far2l backend. Don't forget to enable OSC52 in far2l in Options -> Interface settings.
Workaround 4:
#1658 (comment)
Steps to reproduce:
The text was updated successfully, but these errors were encountered: