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.
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.
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."
@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?