| Summary: | Spectacle isn't saving to clipboard whenever "Show message in a popup" is unticked and an alternative "Capture rectangular region" shortcut is defined | ||
|---|---|---|---|
| Product: | [Applications] Spectacle | Reporter: | heqromancer |
| Component: | General | Assignee: | Boudhayan Gupta <me> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | bharadwaj.raju777, kde, kde, nate, ranaveer323 |
| Priority: | NOR | ||
| Version First Reported In: | 22.08.1 | ||
| Target Milestone: | --- | ||
| Platform: | Manjaro | ||
| OS: | Linux | ||
| See Also: |
https://bugs.kde.org/show_bug.cgi?id=451763 https://bugs.kde.org/show_bug.cgi?id=444037 |
||
| Latest Commit: | https://invent.kde.org/graphics/spectacle/commit/0a5967b069e2016ec3fe7d4610784370aad7e70f | Version Fixed/Implemented In: | |
| Sentry Crash Report: | |||
|
Description
heqromancer
2021-03-02 22:22:49 UTC
I can still reproduce this issue with spectacle 22.08.1. Operating System: Arch Linux KDE Plasma Version: 5.25.90 KDE Frameworks Version: 5.98.0 Qt Version: 5.15.6 Graphics Platform: Wayland So what happens is that if notifications are disabled like that, the KNotification object in Spectacle is destroyed immediately, and my guess is that this is causing Spectacle to exit before the clipboard can be set. It doesn't seem to matter what the shortcut is, though. I wonder if just adding a short timer before emitting allDone would be enough. A possibly relevant merge request was started @ https://invent.kde.org/graphics/spectacle/-/merge_requests/154 *** Bug 451763 has been marked as a duplicate of this bug. *** Git commit 0a5967b069e2016ec3fe7d4610784370aad7e70f by Bharadwaj Raju. Committed on 15/10/2022 at 21:20. Pushed by bharadwaj-raju into branch 'master'. Add a small delay before exiting when notification is destroyed The destruction of the notification object happens immediately if Spectacle is blocked from showing notifications, and in such cases it exits before data can be copied to the clipboard. M +5 -3 src/SpectacleCore.cpp https://invent.kde.org/graphics/spectacle/commit/0a5967b069e2016ec3fe7d4610784370aad7e70f |