Summary: | Clipboard issue on Wayland - "Requested clipboard format is not available" in Libre Office | ||
---|---|---|---|
Product: | [Plasma] kwin | Reporter: | Michał Dybczak <michal.dybczak> |
Component: | wayland-generic | Assignee: | KWin default assignee <kwin-bugs-null> |
Status: | RESOLVED DOWNSTREAM | ||
Severity: | major | CC: | kde, kde, nate, openusr, xaver.hugl |
Priority: | NOR | ||
Version: | 5.27.5 | ||
Target Milestone: | --- | ||
Platform: | Manjaro | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Michał Dybczak
2023-05-27 13:35:07 UTC
I wanted also to add this issue submitted on Libre Office side: https://bugs.documentfoundation.org/show_bug.cgi?id=68765 It is happening since 2013, but since currently it appears to be only on Wayland, this may require another case. Also, please don't disregard quickly this bug on Plasma. In theory, because pasting works to any other app and the clipboard content is available, one could think that this is only Libre Office's problem. However, it could still mean, that Libre Office is doing everything right (or not) and there is some bug in protocol on Plasma's side that could be fixed. Or even it may be upstream issue, there could be some small change on Plasma to avoid it. So or so, this requires digging into what is really happening and who can fix it. Without knowing the cause, it is impossible to tell at this moment. You can check the mime types KWin offers in the debug console (search for "kwin" in krunner to open it). For me at least, copying stuff in a text editor has no mime types that copying from Firefox doesn't have, so afaict this is a bug in libreoffice I'm not sure what you are talking about. I know about MIME types, but I can't follow your advice. In krunner I get only my command to restart kwin and the browser history, so this is a dead end. When searching for kwin in system settings, I get: window's look, desktop effects, screen edges/corners, screen gestures, kwin's scripts, compositor and the night light. None of that will get me to file associations. When I choose file associations manually and search for kwin, there is nothing. So what has kwin with MIME to do? I have no idea. I don't know what debug console is. I can find KDebugSettings, but I'm not sure how to use it. Also, I completely don't understand that part of the sentence "copying stuff in a text editor has no mime types that copying from Firefox doesn't have, so afaict this is a bug in libreoffice" How MIME types are related to clipboard? For me, MIME types are just file type associations, and I can't connect it to clipboard in any way. Can you elaborate a bit, what do you mean? >How MIME types are related to clipboard? For me, MIME types are just file type associations, and I can't connect it to clipboard in any way.
A clipboard consists of a bunch of different data, a list of mimetypes. Text offers text/html, text/plain and a few more.
Clients then ask for data for one or more of them.
From a kwin side everything is working fine, I suspect libreoffice is strugging to find text/plain, one key difference is text/plain now tends to be text/plain;charset=utf_8 which maybe libreoffice doesn't look for.
Please report to libreoffice
But what is the difference between Xorg and Wayland? On Xorg it works fine. This suggests an issue with XWayland side of things. I am not familiar with the topic, so I may ask a stupid question: is XWayland something general that various non-Wayland apps use to be displayed in Wayland correctly, or is it implemented individually per app? I ask this, because it may be issue with XWayland itself? |