"Paste from" stopped working on plasma 6.5 wayland

Happy new year, everyone!

I have been using TexMacs and Mogan under fedora kde plasma wayland. For TexMacs, I use the flag -platform wayland to launch it under wayland. In the past, copy and paste worked without issue. However, after my system was upgraded to plasma 6.5, certain functionalities stopped working.

More specifically, Paste from stopped working, for example, Paste from LaTeX, Paste from verbatim, or Paste from Primary.

The normal copy and paste still work. Options under Copy to still work, e.g. Copy to LaTeX.

The above behavior can be observed in fedora 42 kde plasma 6.5 and fedora 43 kde plasma 6.5, but does not happen on fedora 42 kde 6.4.

I have tested TeXmacs 2.1.4, Mogan v2025.1.1, Mogan v1.2.9.7, as well as the recent svn version of TeXmacs (self-compiled). So it appears this is universal across different TeXmacs versions.

I think this might be due to the fact the kde devs made some changes to the clipboard in kde 6.5. For example, they dropped support for wlr-data-control-unstable-v1 in favor of ext_data_control_v1, which has caused trouble for some other applications. For more detail, see link and link. Though, I am not sure whether TeXmacs’s behavior is related to this.

Does anyone else also suffer from this issue?

Happy new year!

Not exactly the same, but there’s this: https://savannah.gnu.org/bugs/?66718

Thanks for the prompt reply. It does seem like these two could be potentially related. The scheme command “clipboard-paste-import” also works for me.

1 Like

Could you please try “QT_QPA_PLATFORM=xcb texmacs” from the terminal (with a recent svn version) and see if it changes anything?

For the Xwayland platform, the “paste from” option does work without issue. Though, I thought this option has its own issue Copy & Paste under Wayland. Or has this changed with the new version?

I don’t know, I don’t think I ever encountered the other issue. It may be specific to Plasma. It would be good to test it.