Bug 483586 - Spectacle window no longer returns when using hotkeys?
Summary: Spectacle window no longer returns when using hotkeys?
Status: NEEDSINFO WAITINGFORINFO
Alias: None
Product: Spectacle
Classification: Applications
Component: General (other bugs)
Version First Reported In: 24.02.0
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Noah Davis
URL:
Keywords: qt6
Depends on:
Blocks:
 
Reported: 2024-03-14 17:50 UTC by Nick
Modified: 2025-12-09 17:20 UTC (History)
2 users (show)

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


Attachments
Taking screenshots with buttons in the window, followed by using hotkeys. (3.90 MB, video/webm)
2024-03-14 17:50 UTC, Nick
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Nick 2024-03-14 17:50:42 UTC
Created attachment 167194 [details]
Taking screenshots with buttons in the window, followed by using hotkeys.

SUMMARY

Settings:
When launching Spectacle: Use last-used capture mode
After taking a screenshot: [unchecked] Save file to default folder
Copy image to clipboard
Press screenshot key to: Take a new Screenshot

While a Spectacle window is open, pressing a hotkey combo closes the window while taking the screenshot. But the window doesn't return after the screenshot is taken. Clicking any of the screenshot method buttons in the application closes the window to take the screenshot, but still brings it back afterwards.
Using a hotkey combo while a Spectacle window is not open no longer brings one up after the screenshot is taken, but a notification does still appear. If "After taking a screenshot: Save file to default folder" is unchecked and "Copy image to clipboard" is selected, the only way to save the screenshot through the notification is with annotations which is cumbersome.

STEPS TO REPRODUCE
1. Open Spectacle / Skip
2. Press screenshot hotkey combo (IE Meta+Print for active window)

OBSERVED RESULT
Spectacle window doesn't return/open after taking the screenshot.

EXPECTED RESULT
Spectacle window returns/opens after taking the screenshot.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: CachyOS
KDE Plasma Version: 6.0.2
KDE Frameworks Version: 6.0.0
Qt Version: 6.6.2

ADDITIONAL INFORMATION
Comparing to Spectacle 23.08.5 which brings the window back after using a hotkey combo to take a screenshot while it's open. Or brings a window up after using a screenshot combo while no Spectacle window was open.
If this was an intentional change, an option to retain the previous behavior would be useful.
Comment 1 Nick 2024-03-14 19:49:26 UTC
I double checked with a Fedora 39 KDE 5.27.10 install and found I was misremembering how Spectacle 23.08.5 behaved when a window was not open, so disregard that half. Only copying with a notification is how it behaved as well with my settings.
But the behavior when using hotkeys with the window open is definitely different with Spectacle 24.02.0.
Comment 2 Nate Graham 2024-04-09 22:53:41 UTC
Unfortunately despite the text and the screen recording, I'm afraid I can't figure out what the problem you're describing is. Would you mind writing down more detailed steps to reproduce, going step by step to exactly reproduce the issue?
Comment 3 Nick 2024-04-10 10:36:31 UTC
Settings:
When launching Spectacle: Do not take a screenshot automatically
After taking a screenshot: Save file to default folder UNCHECKED / Copy image to clipboard
While Spectacle is running: Press screenshot key to: Take a new Screenshot
Remember selected area: Until Spectacle is closed

Spectacle 23.08.5 (On Plasma 5.27.11):
* Open a Spectacle window.
* Take a screenshot using hotkeys. In this example, meta+print for "Active Window."
* Spectacle window reopens with the newly taken screenshot, without making a screenshot notification.

Spectacle 24.02.1 (On Plasma 6.0.3):
* Open a Spectacle window.
* Take a screenshot using hotkeys.
* Spectacle window closes after the hotkey combo is used and doesn't reopen. Still with no screenshot notification. Screenshot is still created in /tmp/Spectacle.<random> and copied to the clipboard.

In both situations "Quit after manual Save or Copy" is unchecked. Clicking any of the screenshot method buttons in 24.02.1 behaves as expected, having the window reopen with the newly taken screenshot.


I've found through launching Spectacle 24.02.1 from the terminal, the process continues to run after the window closes when taking a hotkey screenshot if there was already a screenshot taken. Either from having "When launching Spectacle: Take full screen screenshot" set or by having previously taken one with any of the buttons in the window.
When taking a screenshot through hotkeys with an "empty" Spectacle window, the process ends immediately after taking it.
In the case when a Spectacle window already contains a screenshot, a hotkey exception is "Rectangular Region." Performing that has the Spectacle process end after the notification closes, which unusually appears.
Nothing new is printed to the terminal after the window closes in any way.

(With Spectacle 23.08.5, using "Rectangular Region" by hotkey with an open window still has it reopen with the screenshot after selecting an area and doesn't make a notification.)

When the Spectacle process is in that background state, taking hotkey screenshots other than "Rectangular Region" will not make new notifications until: another Spectacle window is opened then closed, "Rectangular Region" is used with hotkeys and the notification closes ending the process, or the Spectacle process is otherwise killed.

Without a Spectacle 24.02.1 process already running, the process ends as expected after the notification(s) from any hotkey screenshot method closes. No problem there.
Comment 4 Nate Graham 2024-04-11 16:27:02 UTC
Thanks. Unfortunately I still cannot reproduce the issue with those instructions.
Comment 5 Nick 2024-04-11 19:23:56 UTC
I tried Spectacle on a fresh and updated KDE Neon user edition install to rule out Arch. Same settings as my previous reply.
An existing Spectacle window not reopening after taking a hotkey screenshot happens there the same.

As for the process continuing to run after the window closes, it seems it's due to "After taking a screenshot: Copy image to clipboard"?
If I set "After taking a screenshot: Do not copy anything" the process does end after the window closes with the hotkey screenshot, even if it took a screenshot prior. But that's still a problem, since Spectacle should still be reopening the window on hotkey screenshots as well.
Comment 6 Nick 2024-07-23 09:47:34 UTC
Actually, a quick and easy way to experience this issue is to put the Fedora KDE ISOs of 39 and 40 on a drive with Ventoy.
Spectacle works as expected on 39's live environment, and the issue occurs on 40's live environment as previously outlined.

Fedora 39 KDE live environment:
Plasma 5.27.8
Spectacle 23.08.1

* Open a Spectacle window
* Press meta+printscreen to take a screenshot
* Spectacle window closes, window opens again showing the captured screenshot

Fedora 40 KDE live environment:
Plasma 6.0.3
Spectacle 24.02.1

* Open a spectacle window
* Press meta+printscreen to take a screenshot
* Spectacle window closes, window doesn't open again (with process still running)
* Additionally, the Spectacle window does still close and reopen showing the captured screenshot if any of the buttons in the UI are used instead
Comment 7 Nate Graham 2025-10-30 20:27:47 UTC
Thank you for the bug report, and I'm sorry we weren't able to figure out the nuances here yet. A lot has changed since it was reported; can I ask you to see if this is still an issue with Plasma 6.5 or later? Thanks a lot!
Comment 8 Nick 2025-11-10 07:57:07 UTC
Spectacle has certainly changed.
But the behavior of an open Spectacle window when taking screenshots with hotkeys is still like the latter example of my  2024-07-23 post.
However the Spectacle processes do now end after the window closes with "Copy image to clipboard" selected.

As Spectacle is now, it's not as bad as before for a few reasons.
With Spectacle set to "When launching Spectacle: Use last-used capture mode" and "Press screenshot key to: Take a new Screenshot" it seems to default to taking an "Active Window" screenshot when pressing print screen after using any hotkey combo?
Since Rectangular Region (meta+print) has options to save while selecting the area, pressing print screen later for an Active Window which brings up the Spectacle window works out fine. I only really ever use those two modes anyway.

The problem is still there though. Such as if you have a Spectacle window open and click New Screenshot > All Screens, the window closes then opens with the taken screenshot. Press shift+print while the Spectacle window is open? It just closes. Saves to the clipboard/file, but still.
Comment 9 Bug Janitor Service 2025-11-25 03:46:14 UTC
๐Ÿ›๐Ÿงน โš ๏ธ This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information, then set the bug status to REPORTED. If there is no change for at least 30 days, it will be automatically closed as RESOLVED WORKSFORME.

For more information about our bug triaging procedures, please read https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging.

Thank you for helping us make KDE software even better for everyone!
Comment 10 Nick 2025-11-26 16:46:01 UTC
Apologies for not updating the status.
Comment 11 Nate Graham 2025-12-08 23:36:56 UTC
What's wrong with those behavior, though?
Comment 12 Nick 2025-12-09 17:20:01 UTC
Well if that's intended behavior now, it's just confusing to me.
I personally would assume clicking "New Screenshot > Active Window" in Spectacle and pressing "meta+print screen" while Spectacle is open would behave the same way. But the former ends with the Spectacle window still open, and the latter ends with the window closed.
And the former result being the result of either method up to Spectacle 23.08.5.