SUMMARY When using any capture area except "Rectangular Region", a screenshot copied with Spectacle can't be pasted in Dolphin. It can be pasted in other applications, such as the browser and LibreOffice Writer. STEPS TO REPRODUCE - Open Dolphin Spectacle Settings: - When launching, do not take screenshot automatically - After taking screenshot, copy image to clipboard 1. Copy an image from spectacle, use any type of screenshot except Rectangular Region 2. Attempt to paste the image into Dolphin with Ctrl V 3. Enter a name at the prompt (Note: when the content is properly pasted, the name is auto suggested like with saving to file ex Screenshot_date-time.ico) OBSERVED RESULT The name field is blank The Data type is "application/x-kde-onlyReplaceEmpty" Nothing is pasted to the folder in Dolphin EXPECTED RESULT The name is pre-populated in keeping with the default name settings in Spectacle's settings The Data type matches the image format (png, tiff, jpg etc) The image is pasted as a file in the folder in Dolphin SOFTWARE/OS VERSIONS KDE Plasma git-master on Solus ADDITIONAL INFORMATION Clicking the Copy button in Spectacle allows the image to be pasted in Dolphin as normal Discovered when testing !391 https://invent.kde.org/graphics/spectacle/-/merge_requests/391 The bug is not present in 24.05.2
> The name field is blank Klipper doesn't preserve the "application/x-kde-suggestedfilename" hint used by MR 391 after Spectacle is closed, so this is a Klipper bug. > The Data type is "application/x-kde-onlyReplaceEmpty" > Nothing is pasted to the folder in Dolphin You have to manually pick an image format using the format combobox. This is an issue with Klipper and/or KIO. - Klipper puts "application/x-kde-onlyReplaceEmpty" before the other formats when it would probably be better to ensure it goes last. - KIO should probably ignore custom mimetypes that are only used as hints. Nothing is pasted when you keep the format as "application/x-kde-onlyReplaceEmpty" because that hint doesn't actually hold any data.
This is working for me with git master of Plasma, KWin, Dolphin, and Spectacle. Are you able to reproduce it, Noah?
(In reply to Nate Graham from comment #2) > This is working for me with git master of Plasma, KWin, Dolphin, and > Spectacle. Are you able to reproduce it, Noah? Yes, but it's not a spectacle bug.
Ok, then can you move it to the correct place where it should be fixed?
(In reply to Nate Graham from comment #4) > Ok, then can you move it to the correct place where it should be fixed? There are 3 issues here, so we'll need 3 bug reports: 1. Klipper doesn't preserve "application/x-kde-suggestedfilename". 2. Klipper puts "application/x-kde-onlyReplaceEmpty" first when it should be near the end of the mimetype list. 3. KIO's paste dialog shouldn't offer custom KDE mimetypes that are only used as hints. Do I mark this as Not A Bug?
I'll keep this report for the first bug and move it to the right place. I'll open two other bugs for the two other issues.
I found an older bug 470131 that describes much the same behavior, not sure if this is a duplicate
(In reply to TraceyC from comment #7) > I found an older bug 470131 that describes much the same behavior, not sure > if this is a duplicate Since you changed the title of this report, this report (bug 491961) is now about issue 1. The bug you are referencing (bug 470131) is issue 2.
Just noting, I found that if you have Spectacle set to auto save screenshots to a file, the bug cannot be reproduced With that setting unchecked, the bug happens.
A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-workspace/-/merge_requests/4636
A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-workspace/-/merge_requests/4664
A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-workspace/-/merge_requests/4992
Git commit 52844b51e821a490c6e5194fb34bb00abae3933c by Fushan Wen. Committed on 10/12/2024 at 02:21. Pushed by fusionfuture into branch 'master'. appiumtests: reload config through D-Bus to speed up clipboardtest There is no need to restart the widget to take effect. M +1 -1 appiumtests/applets/CMakeLists.txt M +157 -223 appiumtests/applets/clipboardtest.py M +1 -0 klipper/declarative/qml/ClipboardItemDelegate.qml M +3 -0 klipper/declarative/qml/TextItemDelegate.qml M +2 -0 klipper/declarative/qml/UrlItemDelegate.qml M +17 -11 klipper/klipper.cpp M +9 -4 klipper/klipper.h https://invent.kde.org/plasma/plasma-workspace/-/commit/52844b51e821a490c6e5194fb34bb00abae3933c
Git commit 72722fc4e8eaafbb7a18f58dca6a1be859fbf950 by Fushan Wen. Committed on 10/12/2024 at 03:20. Pushed by fusionfuture into branch 'master'. appiumtests: add test for saving multiple mime types The test case tries to put a content provider with multiple mimetypes into the clipboard and test if the history can remember them. M +77 -0 appiumtests/applets/clipboardtest.py https://invent.kde.org/plasma/plasma-workspace/-/commit/72722fc4e8eaafbb7a18f58dca6a1be859fbf950