SUMMARY Spectacle forks into background when called with -b. This breaks ths usage in pipes using -o /dev/stdout STEPS TO REPRODUCE 1. Call Spectacle with the -b option OBSERVED RESULT Spectacle forks into the background. EXPECTED RESULT Spectacle stays in foreground so that the output to /dev/stdout works for pipes. SOFTWARE/OS VERSIONS KDE Plasma Version: 5.20.4 KDE Frameworks Version: 5.76.0 Qt Version: 5.15.2 ADDITIONAL INFORMATION Maybe an option to output the screenshot directly to stdout would be a cleaner solution.
Can not reproduce: spectacle -b ps -ef | grep spec 1824999 1823012 0 17:03 pts/2 00:00:00 grep --color=auto --exclude-dir=.bzr --exclude-dir=CVS --exclude-dir=.git --exclude-dir=.hg --exclude-dir=.svn --exclude-dir=.idea --exclude-dir=.tox spec it does save a screenshot in my default folder and a notification shows up. When that notification disappears, spectacle closes. What settings do you have set in spectacle?
I can confirm that the behavior changed between the versions 20.08.3 and 20.12.0. Spectacle now stays in the foreground again and can be used in shell pipes. I updated my distro 3 days ago and didn't try it after. I'm sorry for the noise!