https://bugs.kde.org/show_bug.cgi?id=512178

--- Comment #1 from Kirill <[email protected]> ---
Additional observation about the broken clipboard state:

After some more testing, I noticed that when the issue happens, the clipboard
sometimes ends up with a single KDE-specific placeholder MIME type:

    wl-paste --list-types
    application/x-kde-onlyReplaceEmpty

>From what I understand, `application/x-kde-onlyReplaceEmpty` is an internal
KDE MIME type that is only used when the clipboard source is empty or invalid.
In this broken state:

- there is no image/* MIME type at all;
- pasting an image fails in all apps (ChatGPT, browsers, editors, etc.);
- other screenshot tools (e.g. ksnip) also cannot paste anything from the
clipboard;
- restarting xdg-desktop-portal / xdg-desktop-portal-gtk fixes the clipboard
  until the next full-screen screenshot from Spectacle.

This suggests that the Wayland portal (xdg-desktop-portal /
xdg-desktop-portal-gtk
/ xdg-desktop-portal-kde) is returning an invalid clipboard object after a
large full-screen PNG from Spectacle, and KDE falls back to this
`application/x-kde-onlyReplaceEmpty` pseudo-type.

If needed, I can provide logs from:

  journalctl --user -u xdg-desktop-portal -u xdg-desktop-portal-gtk \
             -u plasma-xdg-desktop-portal-kde

collected just after the problem occurs.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to