https://bugs.kde.org/show_bug.cgi?id=520096
Bug ID: 520096
Summary: "Always save in history" off by default silently
breaks screenshot-to-clipboard on Wayland
Classification: Plasma
Product: plasmashell
Version First master
Reported In:
Platform: CachyOS
OS: Linux
Status: REPORTED
Severity: normal
Priority: NOR
Component: Clipboard widget & pop-up
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
Target Milestone: 1.0
SUMMARY
On a fresh KDE Wayland session, screenshots taken with Spectacle are
silently not copied to the clipboard. No error is shown. The issue
affects all third-party screenshot tools as well (ksnip, flameshot etc).
STEPS TO REPRODUCE
1. Fresh KDE Plasma install with default Clipboard settings
2. Take a screenshot with Spectacle with "Copy to clipboard" enabled
3. Try to paste the screenshot anywhere
OBSERVED RESULT
Nothing is pasted (works 1/10 times). The clipboard appears empty. No error is
shown.
EXPECTED RESULT
Screenshot is pasted normally.
ROOT CAUSE
In System Settings → Clipboard, the default for "Non-text selection"
is "Only when explicitly copied". This setting should work correctly
with Spectacle, which explicitly writes image data to the clipboard.
However, on Wayland, this explicit clipboard write is being silently
dropped by the Clipboard manager... no error is shown to the user.
Changing the setting to "Always save in history" fixes the issue
immediately and permanently, suggesting that the "Only when explicitly
copied" code path is broken specifically on Wayland for image/non-text
data.
The fix should be either:
1. Fix "Only when explicitly copied" to correctly handle image data
on Wayland, or
2. Show a warning when clipboard image data is silently dropped.
This has caused years of confusion with users and developers alike,
with blame incorrectly placed on Spectacle and Wayland's clipboard
protocol.
ADDITIONAL INFO
KDE Plasma Version: 6.6.4
Kernel Version: 7.0.5-2-cachyos (64-bit)
Distribution: CachyOS (Arch-based)
Graphics Platform: Wayland
--
You are receiving this mail because:
You are watching all bug changes.