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

            Bug ID: 512183
           Summary: Wayland: clipboard sometimes ends up as
                    application/x-kde-onlyReplaceEmpty after Spectacle
                    full-screen 4K PNG
    Classification: Plasma
           Product: xdg-desktop-portal-kde
      Version First unspecified
       Reported In:
          Platform: Other
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
  Target Milestone: ---

Created attachment 186839
  --> https://bugs.kde.org/attachment.cgi?id=186839&action=edit
kwin-log portal-log wl-after wl-before pw.json

On Plasma Wayland (6.5.2) under openSUSE Tumbleweed with an NVIDIA GPU, copying
a full-screen 4K screenshot from Spectacle to the clipboard intermittently
breaks the Wayland clipboard pipeline.

After several full-screen captures, the clipboard stops exposing any image MIME
types and instead contains only:

application/x-kde-onlyReplaceEmpty

At this point pasting images into browsers or applications fails, and all
screenshot tools (including ksnip or Flameshot) can no longer place images into
the clipboard. The issue persists until the portals are restarted:

systemctl --user restart xdg-desktop-portal xdg-desktop-portal-gtk

or the user logs out and back in.

Small region captures usually continue to work; the problem is strongly
correlated with large 3840×2160 PNG screenshots produced by Spectacle.

Attached logs (wl-before.txt, wl-after.txt, portal-log.txt, kwin-log.txt,
pw.json) show:

before the issue: normal clipboard types (image/png, application/x-qt-image,
etc.);

after the issue: only application/x-kde-onlyReplaceEmpty;

portal and PipeWire warnings around the moment of failure;

KWin Wayland logs containing related errors.

This suggests a failure when the xdg-desktop-portal / Wayland clipboard stack
processes Spectacle’s large PNG buffer, causing KDE’s clipboard to fall back to
the internal placeholder MIME type.

I can run additional diagnostics or patches if needed.

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

Reply via email to