Bug 385559

Summary: "Copy to Clipboard" CLI option for spectacle
Product: [Applications] Spectacle Reporter: Kyrylo Bohdanenko <kirill.bogdanenko>
Component: GeneralAssignee: Boudhayan Gupta <me>
Status: RESOLVED FIXED    
Severity: wishlist CC: dufferzafar0, harindudilshan95, nate, null
Priority: NOR Keywords: junior-jobs
Version: unspecified   
Target Milestone: ---   
Platform: Kubuntu   
OS: Linux   
Latest Commit: Version Fixed In: 19.08.0

Description Kyrylo Bohdanenko 2017-10-10 19:26:12 UTC
It would be quite nice to have a CLI key for spectacle to capture screenshot to a clipboard from CLI. Similar to -b, --background option, but instead of saving it ti a file, copy the screenshot to a clipboard without opening GUI.
Comment 1 Nate Graham 2017-10-12 04:44:13 UTC

*** This bug has been marked as a duplicate of bug 384830 ***
Comment 2 null 2018-02-18 01:17:42 UTC
The duplicate of this bug (Bug 384830), is now a duplicate of Bug 375382 which will implement a hotkey for taking a screenshot and copying in one go.

Un-duplicating, because a DBus-activated hotkey is not the same as a command line option. This should be added in a follow-up patch.
Comment 3 Kavinda 2018-03-03 04:17:44 UTC
I created a patch for this. https://phabricator.kde.org/D10984
But there is a slight problem as linux seems to clear the clipboard when a program exits. So I suggest using klipper or another clipboard manager when you take screenshots in background.
Comment 4 Nate Graham 2019-03-26 18:37:11 UTC
Git commit ec5e918743e7a260cb5288699e611bd47ed70b28 by Nate Graham, on behalf of Karlo Dautović.
Committed on 26/03/2019 at 18:33.
Pushed by ngraham into branch 'Applications/19.04'.

Add option to copy screenshot to clipboard in background mode

Summary:
Related: bug 393708
FIXED-IN: 19.04.0

Reviewers: #spectacle, ngraham

Reviewed By: #spectacle, ngraham

Subscribers: ngraham, davidre, #spectacle

Tags: #spectacle

Differential Revision: https://phabricator.kde.org/D19715

M  +11   -2    src/ExportManager.cpp
M  +1    -1    src/ExportManager.h
M  +2    -1    src/Gui/KSMainWindow.cpp
M  +7    -1    src/Main.cpp
M  +17   -8    src/SpectacleCore.cpp
M  +2    -1    src/SpectacleCore.h

https://commits.kde.org/spectacle/ec5e918743e7a260cb5288699e611bd47ed70b28