Bug 459019 - Terminal command is blocking if Spectacle is not already open
Summary: Terminal command is blocking if Spectacle is not already open
Status: RESOLVED NOT A BUG
Alias: None
Product: Spectacle
Classification: Applications
Component: General (show other bugs)
Version: 22.08.0
Platform: Neon Linux
: NOR minor
Target Milestone: ---
Assignee: Boudhayan Gupta
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-09-12 11:57 UTC by xenothestrange
Modified: 2022-09-13 19:26 UTC (History)
2 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 xenothestrange 2022-09-12 11:57:51 UTC
STEPS TO REPRODUCE
Ensure that Spectacle is not running
Run command: spectacle -b -f -o "/tmp/test.png"; echo test

OBSERVED RESULT
echo command is not run due to spectacle blocking (unless it was open prior to the command being run)

EXPECTED RESULT
Spectacle is run, takes a screenshot and then closes.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma 
KDE Plasma Version: 5.25.4
KDE Frameworks Version: 5.97.0
Qt Version: 5.15.5

Note:
The program "scrot" demonstrates the expected behavior.
Comment 1 Nate Graham 2022-09-13 19:26:57 UTC
For technical reasons, Spectacle has to remain open while the notification it sends is open. If this is a problem for your scripting purposes, you can add the -n argument to suppress the notification, which will make Spectacle exit instantly after taking a screenshot, at the cost of not showing you a notification.