Bug 359995 - Wish to add a command option
Summary: Wish to add a command option
Status: RESOLVED INTENTIONAL
Alias: None
Product: Spectacle
Classification: Applications
Component: General (show other bugs)
Version: unspecified
Platform: openSUSE Linux
: NOR major
Target Milestone: ---
Assignee: Boudhayan Gupta
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-03-02 13:31 UTC by Andy
Modified: 2016-08-14 20:46 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andy 2016-03-02 13:31:09 UTC
I hope that the "sspectacle" command have an option that can copy the capture to clipboard other than save it to file in background mode. The GUI already have that function.

Reproducible: Always


Actual Results:  
Don't have the option for command line.

Expected Results:  
Have the option for command line.
Comment 1 Boudhayan Gupta 2016-04-03 19:21:48 UTC
This doesn't reliably work all the time and I'm not looking forward to handling a deluge of bugreports saying "copy to clipboard in background mode does nothing". Sorry.
Comment 2 Damian Nowak 2016-08-14 20:42:56 UTC
Workaround:

xclip -sel clipboard -i -t image/png < image.png

@Boudhayan, here's what you can do to avoid a deluge of bug reports while still keeping the feature:
 
1. Copy image to clipboard.
2. Immediately after that's done check the contents of the clipboard to validate it's been copied.
3. If not, exit with non-zero status, and print a message "Could not send image to clipboard. This feature doesn't reliably work and there's no way to ensure it. Please do not raise any bug reports. Screenshot was saved to /path/image.png instead."
Comment 3 Damian Kaczmarek 2016-08-14 20:46:21 UTC
@Boudhayan Gupta so have you had a deluge of bugreports saying that this option does not work from GUI? If so then the number of people using it from command line is gonna be certainly lower. If not, then what makes you think as you stated?