Bug 452309 - [Wayland] Capture Active Window shortcut doesn't work
Summary: [Wayland] Capture Active Window shortcut doesn't work
Status: RESOLVED NOT A BUG
Alias: None
Product: Spectacle
Classification: Applications
Component: General (show other bugs)
Version: 22.03.80
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Boudhayan Gupta
URL:
Keywords: wayland
Depends on:
Blocks:
 
Reported: 2022-04-05 21:19 UTC by Ismael Asensio
Modified: 2022-04-07 19:27 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 Ismael Asensio 2022-04-05 21:19:33 UTC
SUMMARY

Triggering the shortcut to Capture Active Window doesn't work for me on Wayland.

If spectacle is currently running, it will report that the capture couldn't be made. If is not open nothing happens.

Shortcuts for other modes do work: Rectangular Region and Screen Capture. Capture window under mouse does work when launched from spectacle.

STEPS TO REPRODUCE & OBSERVED RESULT
(Spectacle is not running)
A1. Press the shortcut for "Capture Active Window" (default Meta+PrintScr)
A2. Nothing happens

(Spectacle is  running)
B1. Open Spectacle
B2. Press the shortcut for "Capture Active Window" (default Meta+PrintScr)
B3. Inline message showing the capture couldn't be made

EXPECTED RESULT
The active window is captured

SOFTWARE/OS VERSIONS
Operating System: Kubuntu 22.04
KDE Plasma Version: 5.24.80
KDE Frameworks Version: 5.93.0
Qt Version: 5.15.3
Kernel Version: 5.13.0-30-generic (64-bit)
Graphics Platform: Wayland
Processors: 8 × Intel® Core™ i7-8565U CPU @ 1.80GHz
Memory: 15.3 GiB of RAM
Graphics Processor: Mesa Intel® UHD Graphics 620

ADDITIONAL INFORMATION

In case this is related, PrintScr shortcut (for just opening spectacle) hasn't also been working for me for a while, both on X11 or Wayland, so it might be some problem with dev-session DBus shennanigans
Comment 1 Nate Graham 2022-04-06 18:21:38 UTC
> In case this is related, PrintScr shortcut (for just opening spectacle) hasn't also been working for me
> for a while, both on X11 or Wayland, so it might be some problem with dev-session DBus shennanigans
99.99% chance it's that, as I've had similar issues in the past due to DBus's fragility in dev sessions.

If it works when you right-click on Spectacle's icon and choose "Capture active window", then it's the DBus issue, not a problem in Spectacle.
Comment 2 Ismael Asensio 2022-04-07 19:27:53 UTC
(In reply to Nate Graham from comment #1)
> > In case this is related, PrintScr shortcut (for just opening spectacle) hasn't also been working for me
> If it works when you right-click on Spectacle's icon and choose "Capture
> active window", then it's the DBus issue, not a problem in Spectacle.

Ok, confirmed this is opening right... It would be nice to have a dev-session issues section :) 
Closing, thanks!