Bug 458831 - calling spectacle by shortcut only copies to clipboard but does not show the spectacle window
Summary: calling spectacle by shortcut only copies to clipboard but does not show the ...
Status: RESOLVED INTENTIONAL
Alias: None
Product: Spectacle
Classification: Applications
Component: General (other bugs)
Version First Reported In: 22.08.0
Platform: Fedora RPMs Linux
: NOR normal
Target Milestone: ---
Assignee: Boudhayan Gupta
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-09-07 08:40 UTC by slartibart70
Modified: 2023-11-23 13:49 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description slartibart70 2022-09-07 08:40:00 UTC
- define some shortcuts for spectacle:
ctrl-shift-print: capture rectangular region
ctrl-meta-print: capture current/active window
ctrl-print: open spectacle

Expectation:
capturing the active window or region should also open the spectacle window after successful capturing.
but, only the image gets saved to clipboard (and we are notified by the tray with an info popup) and the spectacle main window is never shown

This happens only sometimes, if you opened the spectacle main window several times it 'settled' and seems to work always after this.

But, after a fresh start of plasma (and no '/usr/bin/spectacle --dbus' running in the background) you press the shortcut, get a copy in clipboard (and message about it) and that's it.
Now, open spectacle main window, take some screenshots by operating the buttons, then use shortcuts (only) again.

This also happens if you kill the background process `/usr/bin/spectacle --dbus` 
Make shortcut-based screenshots, no spectacle main window appears
Open spectacle once (ctrl-print), close it by escape, then do shortcut-based screenshots again and it works ok (like, it shows the spectacle window after capturing)
Comment 1 Noah Davis 2023-11-22 13:37:57 UTC
There are two intentional behaviors. For direct screen capture shortcuts (current screen, all screens, rectangular region, active window and window under cursor), you will only get a notification. For the more general open shortcut and the no screenshot shortcut, you get a window.

I'm not exactly sure what the original intentions were, but my assumption is that the window was not necessary when doing direct capture shortcuts. Not having a window it means you don't need to manually save the image or move/close/minimize the window when dragging and dropping. For the more general open shortcut, there is a large variety of behaviors it could use based on user settings, some of which need a window.

I had a bit of trouble understanding what you thought was wrong, so let me know if I misunderstood you.
Comment 2 slartibart70 2023-11-23 13:49:00 UTC
This is already a bit older, spectacle has improved by then :-D
I forgot to close this, let's do it now.
Thanks for your help, anyway!