Bug 506703

Summary: "An error occurred while taking a screenshot."
Product: [Applications] Spectacle Reporter: Ellie <el>
Component: GeneralAssignee: Noah Davis <noahadvs>
Status: REPORTED ---    
Severity: normal CC: kde
Priority: NOR    
Version First Reported In: 6.4.2   
Target Milestone: ---   
Platform: postmarketOS   
OS: Linux   
See Also: https://bugs.kde.org/show_bug.cgi?id=446628
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Ellie 2025-07-07 04:32:53 UTC
SUMMARY

I'm seeing this error text when trying to take a screenshot today:

An error occurred while taking a screenshot.
KWin screenshot request failed:
The process is not authorized to take a screenshot
Potentially relevant information:
- Method: CaptureScreen
- Method specific arguments: "HDMI-A-1"

However, I don't think this is https://bugs.kde.org/show_bug.cgi?id=446628 since I don't have a second .desktop file in ~/.local.share/applications/ and I have the X-KDE-DBUS-Restricted-Interfaces=org.kde.KWin.ScreenShot2 line in /usr/share/applications/org.kde.spectacle.desktop that is mentioned in that other ticket.

STEPS TO REPRODUCE

1. Press print button
2. Spectacle opens but it shows above error text.

OBSERVED RESULT

Cannot take screenshot, spectacle shows above error. It worked yesterday. I may have installed package updates since, but nothing major like the 6.3.x to 6.4.x Plasma upgrade.

EXPECTED RESULT

Taking screenshot works.

SOFTWARE/OS VERSIONS

Windows: 
macOS: 
(available in the Info Center app, or by running `kinfo` in a terminal window)
Linux/KDE Plasma: postmarketOS edge based on Alpine edge
KDE Plasma Version: 6.4.2
KDE Frameworks Version: 6.15.0
Qt Version: 6.8.3

ADDITIONAL INFORMATION
Comment 1 Ellie 2025-07-07 04:35:56 UTC
Unlike in #446628 it seems like flameshot currently can't take a screenshot for me either:

$ flameshot screen
flameshot: error: Unable to capture screen
flameshot: info: Screenshot aborted.