Bug 486658 - Spectacle not copying to clipboard
Summary: Spectacle not copying to clipboard
Status: RESOLVED DUPLICATE of bug 485096
Alias: None
Product: Spectacle
Classification: Applications
Component: General (show other bugs)
Version: 24.02.2
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Noah Davis
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-05-06 07:24 UTC by Kalcifer
Modified: 2024-05-09 00:53 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kalcifer 2024-05-06 07:24:16 UTC
SUMMARY

Any screenshot taken with spectacle doesn't get automatically copied to the clipboard, despite the setting being set. Also the "Copy" button doesn't copy to the clipboard. The only way to copy the image to the clipboard is to click "copy" in the hamburger menu of the notification that pops up when you take a screenshot.

STEPS TO REPRODUCE
1. Enable and apply Spectacle>Configure>General>After taking a screenshot>Copy image to clipboard
2. Take a screenshot (doesn't matter if it's via a keyboard shortcut, or through the app)
3. Observe that you can't paste anything (nothing was copied)
3. Observe the same behaviour if you click the copy button within the Spectacle app
3. Observe the error "The file or folder /tmp/<screenshot-path>.jpeg does not exist." if you try to click on the image in the notifications.
4. Observe that, in the clipboard viewer, you can see an icon representing an image, but no image is in the clipboard.

OBSERVED RESULT


EXPECTED RESULT


SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
Comment 1 Kalcifer 2024-05-06 07:28:57 UTC
Whoops didn't fill out the rest of the information. Here's the parts that I didn't fill out (since this bugtracker doesn't let me edit anything...):

OBSERVED RESULT

Nothing gets copied to the clipboard, or can be pasted from the clipboard.

EXPECTED RESULT

I would the screenshots to be copied to the clipboard, and be able to be pasted from the clipboard with the setting enabled.

SOFTWARE/OS VERSIONS
Linux: Arch Linux (Kernel v6.8.9-arch1-1)
KDE Plasma Version: 6.0.4
KDE Frameworks Version:  (can't open about system cause it keeps crashing for some reason)
Qt Version: (Can't open about system cause it keeps crashing for some reason)

ADDITIONAL INFORMATION

Pec
Comment 2 Noah Davis 2024-05-06 09:16:31 UTC
Is this a duplicate of bug 485096?
Comment 3 Nate Graham 2024-05-06 22:02:43 UTC

*** This bug has been marked as a duplicate of bug 485096 ***
Comment 4 Noah Davis 2024-05-06 23:18:49 UTC
(In reply to Nate Graham from comment #3)
> 
> *** This bug has been marked as a duplicate of bug 485096 ***

Sorry Nate, I should have marked this as NEEDSINFO. We don't know for sure if it's a duplicate yet.
Comment 5 Kalcifer 2024-05-08 20:20:19 UTC
I don't think this is a duplicate of https://bugs.kde.org/show_bug.cgi?id=485096 — I can't even reproduce that bug. It just seems that some image formats won't copy to the clipboard. I have also found this behaviour with WebP; however, PNG is able to copy to the clipboard.
Comment 6 Noah Davis 2024-05-08 20:28:07 UTC
(In reply to Kalcifer from comment #5)
> I don't think this is a duplicate of
> https://bugs.kde.org/show_bug.cgi?id=485096 — I can't even reproduce that
> bug. It just seems that some image formats won't copy to the clipboard. I
> have also found this behaviour with WebP; however, PNG is able to copy to
> the clipboard.

Just to be clear, you are unable to paste a JPEG even after closing Spectacle?
Comment 7 Kalcifer 2024-05-09 00:09:33 UTC
> Just to be clear, you are unable to paste a JPEG even after closing Spectacle?

Ah, my bad — I misread the reported issue. So, for clarity, after I close spectacle, I am able to paste the image — I am not able to paste an image with spectacle open. Given that that is the case, it seems strange that using a shortcut to capture a rectangular region to the clipboard doesn't count as Spectacle being closed since the spectacle app was never opened to begin with.
Comment 8 Noah Davis 2024-05-09 00:53:13 UTC
(In reply to Kalcifer from comment #7)
> > Just to be clear, you are unable to paste a JPEG even after closing Spectacle?
> 
> Ah, my bad — I misread the reported issue. So, for clarity, after I close
> spectacle, I am able to paste the image — I am not able to paste an image
> with spectacle open. Given that that is the case, it seems strange that
> using a shortcut to capture a rectangular region to the clipboard doesn't
> count as Spectacle being closed since the spectacle app was never opened to
> begin with.

It was opened, just not the way you normally think of.

Given that the behavior you see is like the behavior in bug 485096 where pasting only works after spectacle's process ends, I think this is a duplicate after all.

*** This bug has been marked as a duplicate of bug 485096 ***