Bug 431061 - Spectacle forks in background with -b option
Summary: Spectacle forks in background with -b option
Status: RESOLVED FIXED
Alias: None
Product: Spectacle
Classification: Applications
Component: General (show other bugs)
Version: 20.08.3
Platform: Manjaro Linux
: NOR normal
Target Milestone: ---
Assignee: Boudhayan Gupta
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-01-02 12:39 UTC by Davy
Modified: 2021-01-06 16:18 UTC (History)
3 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 Davy 2021-01-02 12:39:06 UTC
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.
Comment 1 Antonio Prcela 2021-01-06 16:06:10 UTC
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?
Comment 2 Davy 2021-01-06 16:18:19 UTC
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!