Bug 506703 - "An error occurred while taking a screenshot."
Summary: "An error occurred while taking a screenshot."
Status: REPORTED
Alias: None
Product: Spectacle
Classification: Applications
Component: General (other bugs)
Version First Reported In: 6.4.2
Platform: postmarketOS Linux
: NOR normal
Target Milestone: ---
Assignee: Noah Davis
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-07-07 04:32 UTC by Ellie
Modified: 2025-07-07 04:36 UTC (History)
1 user (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 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.