Created attachment 179620 [details] A Screenshot of the Data, as Rendered inside Klipper's GUI SUMMARY Plasma Integration's "Copy to clipboard" entry enters unusable data into Klipper. STEPS TO REPRODUCE 1. Visit https://mdn.github.io/dom-examples/web-share/. 2. Select "Share MDN!" 3. Select "Copy to clipboard". 4. Invoke Klipper, and/or attempt to paste. OBSERVED RESULT Klipper appears to contain binary data which cannot be pasted into any text entry area. EXPECTED RESULT Klipper should contain a UTF-8 URI. SOFTWARE/OS VERSIONS > Operating System: Fedora Linux 41 > KDE Plasma Version: 6.3.3 > KDE Frameworks Version: 6.12.0 > Qt Version: 6.8.2 > Kernel Version: 6.13.7-200.fc41.x86_64 (64-bit) > Graphics Platform: Wayland ADDITIONAL INFORMATION Originally confirmed at https://discuss.kde.org/t/unable-to-copy-uri-in-native-browser-share-menu-why/31765/4?u=rokejulianlockhart.
(In reply to Roke Julian Lockhart Beedell from comment #0) > SOFTWARE/OS VERSIONS https://addons.mozilla.org/firefox/downloads/file/4298512/plasma_integration-1.9.1.xpi
Since I confirmed in the Discuss thread, here are my versions: Operating System: KDE neon 6.3 KDE Plasma Version: 6.3.3 KDE Frameworks Version: 6.11.0 Qt Version: 6.8.2 Kernel Version: 6.11.0-19-generic (64-bit) Graphics Platform: X11 Firefox extension 1.9.1 Chrome extension 2.0 Both browsers are native packages
Can confirm. So this issue happens under X11 as well? Then it’s not what I thought. Under Qt Wayland a URL isn’t implicitly added as text to the clipboard whereas Qt XCB does.
A possibly relevant merge request was started @ https://invent.kde.org/frameworks/purpose/-/merge_requests/129
(In reply to Kai Uwe Broulik from comment #3) > Can confirm. > > So this issue happens under X11 as well? Then it’s not what I thought. Under > Qt Wayland a URL isn’t implicitly added as text to the clipboard whereas Qt > XCB does. Behavior on X11: entry in Klipper is neither text nor URL but looks like broken images. Pasting (e.g. into KWrite) results in > https://developer.mozilla.org/ > Learn web development on MDN!
Git commit 04dcb61e1d80149116e8d45055abfcd1248204c7 by Kai Uwe Broulik. Committed on 21/03/2025 at 15:55. Pushed by broulik into branch 'master'. Clipboard: Set clipboard text, too, if applicable Purpose has no proper API contract for sending just text, it's all sent as part of "urls". Try to guess what is an URL (we want to be tolerant in the parser since we don't really know how strict the input will be) and only set that as URL and also set everything as text. M +19 -11 src/plugins/clipboard/clipboardplugin.cpp https://invent.kde.org/frameworks/purpose/-/commit/04dcb61e1d80149116e8d45055abfcd1248204c7