1. take a screenshot with spectacle 2. Ctrl+V to Dolphin 3. The mimetype is "application/x-kde-onlyReplaceEmpty" and the file is not recognized by apps, naming it "*.png" also doesnt fix it. Interestingly copying to Libreoffice (Flatpak) works normally. What should happen? Spectacle saves Screenshots as PNG afaik, so this should be the mimetype --- Software --- OS: Fedora Linux 38.20230821.0 (Kinoite) KDE Plasma: 5.27.6 KDE Frameworks: 5.108.0 Qt: 5.15.10 Kernel: 6.4.11-200.fc38.x86_64 Compositor: x11
related closed bug: https://bugs.kde.org/show_bug.cgi?id=465178
>3. The mimetype is "application/x-kde-onlyReplaceEmpty" and the file is not recognized by apps, naming it "*.png" also doesnt fix it. The mimetype should be a list of things. A bunch of image formats and this one thing. That hint is a workaround for a wayland protocol race condition. I would expect all clients to ignore it and choose one of the mimetypes they do know (image/png for example), can you expand on how you saw this was the issue?
.
Yes, I can choose a mimetype in dolphin I want to choose. But just pressing "Enter" keeps it in an unusable format. When I dont give an extension its a textfile containing "1" When I give extension .png, XNViewMP still cant open it for some reason, same in Gwenview RPM
I can reproduce the issue as reported: by copying an image in Spectacle and pasting while Dolphin is open. The mimetype list is populated with lots of correct-looking mimetypes, but also "application/x-kde-onlyReplaceEmpty" which is the first item in the list, presumably because it starts with "a". So either it shouldn't be in the list at all, or it shouldn't be selected by default instead of a real image mimetype.
Thanks for the analysis! Yes this makes sense. Does Spectacle save images as PNG by default? Because it doesnt seem to make sense for me that a PNG should be saved as JPEG, what does the conversion? Shouldnt the mimetype that "reaches the clipboard" just be the one spectacle actually uses?
some update: When I edit the screenshot with the Spectacle edit tool (which for some reason got way less features??) then when saving the format is PNG. Maybe the screenshot edit tool does something with its output that spectacle alone does not?