Bug 504023

Summary: When I run the Spectacle app, it doesn't take a screenshot
Product: [Applications] Spectacle Reporter: hsnnsnc <hasannisanci>
Component: GeneralAssignee: Noah Davis <noahadvs>
Status: REPORTED ---    
Severity: major CC: kde, nate
Priority: NOR    
Version First Reported In: 24.12.3   
Target Milestone: ---   
Platform: Neon   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Spectacle ".desktop" file

Description hsnnsnc 2025-05-10 17:59:23 UTC
SUMMARY
When I run the Spectacle app, it doesn't take a screenshot.

STEPS TO REPRODUCE
1. Open Spectacle with “PrtSc”
2. Open Spectacle with Meta+Shift+PrtSc
3. Open Spectacle with Shift+PrtSc
4. Open Spectacle with Meta+PrtSc

They will all give an error.

OBSERVED RESULT
1. Open Spectacle with “PrtSc”
An error occurred while taking a screenshot.
KWin screenshot request failed:
The process is not authorized to take a screenshot
Potentially useful information:
- Method: CaptureScreen
- Method specific arguments: "DP-3"

2. Open Spectacle with Meta+Shift+PrtSc
An error occurred while taking a screenshot.
KWin screenshot request failed:
The process is not authorized to take a screenshot
Potentially useful information:
- Method: CaptureScreen
- Method specific arguments: "DP-3" 

3. Open Spectacle with Shift+PrtSc
An error occurred while taking a screenshot.
KWin screenshot request failed:
The process is not authorized to take a screenshot
Potentially useful information:
- Method: CaptureScreen
- Method specific arguments: "DP-3" 

4. Open Spectacle with Meta+PrtSc
An error occurred while taking a screenshot.
KWin screenshot request failed:
The process is not authorized to take a screenshot
Potentially useful information:
- Method: CaptureActiveWindow
- Method specific arguments: QMap(("include-decoration", QVariant(bool, true))("include-shadow", QVariant(bool, true))("native-resolution", QVariant(bool, true))

EXPECTED RESULT
Spectacle should capture screenshots as expected 

SOFTWARE/OS VERSIONS
Operating System: KDE neon 6.3
KDE Plasma Version: 6.3.5
KDE Frameworks Version: 6.14.0
Qt Version: 6.9.0
Kernel Version: 6.11.0-25-generic (64-bit)
Graphics Platform: Wayland
Processors: 16 × AMD Ryzen 7 5700X 8-Core Processor
Memory: 15.5 GB of RAM
Graphics Processor: AMD Radeon RX 7600 XT

ADDITIONAL INFORMATION
Comment 1 Nate Graham 2025-05-13 18:16:33 UTC
> The process is not authorized to take a screenshot
This means Spectacle was compiled from source in a different base location than the one used by KWin, or else you've monkeyed with Spectacle's .desktop file in a way that triggered this issue.

Did you knowingly do either of those things?
Comment 2 hsnnsnc 2025-05-14 06:00:46 UTC
(In reply to Nate Graham from comment #1)
> > The process is not authorized to take a screenshot
> This means Spectacle was compiled from source in a different base location
> than the one used by KWin, or else you've monkeyed with Spectacle's .desktop
> file in a way that triggered this issue.
> 
> Did you knowingly do either of those things?

I did not modify the “.desktop” file or any other file, I did not compile Spectacle from the source file (the system is up to date and I can generate the same errors)
Comment 3 hsnnsnc 2025-05-14 16:17:47 UTC
Created attachment 181297 [details]
Spectacle ".desktop" file

Spectacle ".desktop" file
Comment 4 hsnnsnc 2025-07-13 10:33:38 UTC
The error persists with the latest KDE neon.

Operating System: KDE neon User Edition
KDE Plasma Version: 6.4.2
KDE Frameworks Version: 6.15.0
Qt Version: 6.9.0
Kernel Version: 6.11.0-29-generic (64-bit)
Graphics Platform: Wayland
Processors: 16 × AMD Ryzen 7 5700X 8-Core Processor
Memory: 16 GB of RAM (15.5 GB usable)
Graphics Processor: AMD Radeon RX 7600 XT