Version: unspecified (using KDE 4.5.3) OS: Linux KSnapshot uses a wrong mimetype for the screenshot. Reproducible: Always Steps to Reproduce: Scenario #1) - Make a screenshot using ksnapshot - Press 'Copy to clipboard' - Open a filemanager (e.g. Dolphin) - Rightclick in a folder and select 'Paste clipboard contents' Scenario #2) - Make a screenshot using ksnapshot - Drag the screenshot shown in the ksnapshot window to a filemanager to save the screenshot through drag'n'drop. Actual Results: Scenario #1) - When pasting the image, the preselected mimetype is shown as 'application/x-qt-image', although the image which is created then, is actually a PNG image. Scenario #2) - The cursor is always shown as 'blocked' by the filemanager, due to an probably unknown mimetype.
application/x-qt-image is not a registered file type in system settings. The code seems to follow the logic "QInternalMimeData::hasFormat". The first "foundFormat" of "imageFormats" when scrolling mouse wheel is PNG-Image (image/png). In scenario #2 the cursor is 'not blocked' with KolourPaint or GIMP.
The initially reported scenarios work now in KDE 4.7.90 (4.8.0 beta2), using Qt 4.7.4. Another issue which remains: → Open http://imgur.com in a browser → Drag the image from ksnapshot to the browser When dragging a regular image file to the browser, it can be uploaded directly. When dragging the image from ksnapshot there, nothing happens
Update report summary to reflect the current status.
Git commit 3bb8fe97096badedf45863ab81f5868ca01cc2de by Sebastian Kügler. Committed on 19/07/2013 at 19:46. Pushed by sebas into branch 'master'. Attach URL to dragged image to mimedata This makes dropping ksnapshots images into clients work that don't pick up the image data, but only look for a URL in the dragged mimedata. REVIEW:111564 Related: bug 158677, bug 256801 M +3 -0 ksnapshot.cpp http://commits.kde.org/ksnapshot/3bb8fe97096badedf45863ab81f5868ca01cc2de