Bug 383992

Summary: incorrect export PIXMAP into clipboard
Product: [Applications] Spectacle Reporter: spumer <spumer-tm>
Component: GeneralAssignee: Boudhayan Gupta <me>
Status: RESOLVED FIXED    
Severity: normal CC: antonio.prcela, nate, null
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: wine screenshot

Description spumer 2017-08-25 07:14:37 UTC
With new Wine versions image can't be imported from clipboard.

Related bug with discussion in wine: https://bugs.winehq.org/show_bug.cgi?id=43603

System:
Ubuntu 17.04, KDE 5 Plasma

Spectacle 16.12.3:
KDE Frameworks 5.31.0,
Qt 5.7.1 (build with 5.7.1),
Window system xcb.
Comment 1 null 2018-02-13 23:04:09 UTC
@spumer: As the Wine bug is closed as fixed now, is there anything left Spectacle should do?
Comment 2 spumer 2018-02-14 04:01:34 UTC
Workaround added to Wine. Now Wine try all methods to import image.
But i think it will be good to fix it in Spectacle.

You can close it, if no commit expected.
Comment 3 Nate Graham 2018-02-14 20:47:31 UTC
Are we actually doing the wrong thing here, or is this just a case of there being no 100% standard format for clipboard pixmap data?
Comment 4 null 2018-02-14 21:07:02 UTC
I looked into the source a bit today, but at least could not find anything like you just removed in D10427 for the copying case (or I just missed it).

To answer what's right or wrong, I'd need to do some research on the topic. I'm not going to do this at the moment, so I guess we'll just leave the bug open for now until someone with expert knowledge comes along.
Comment 5 Antonio Prcela 2020-06-11 13:04:40 UTC
Created attachment 129232 [details]
wine screenshot

Tested using latest KDE Neon + Wine 3.0 + Inkscape.exe
Seems to work fine now.
Copied screenshot to clipboard (Spectacle running in KDE Neon as native Linux app) and from clipboard into Inkscape (running as exe via Wine).
See attached screenshot.