Spectacle: Screenshot request failed: "The process is not authorized to take a screenshot"

Hi,

Updated to latest TW snapshot 20240523 this morning and Spectacle no longer works (it worked perfectly fine last week on an older snapshot).

Plasma version 6.0.4, on Wayland.

No Spectacle window appears and no screenshot is taken when I start Spectacle using the print screen key or from the launcher or from the terminal. Example output:

> spectacle -i
Detected locale "C" with character encoding "ANSI_X3.4-1968", which is not UTF-8.
Qt depends on a UTF-8 locale, and has switched to "C.UTF-8" instead.
If this causes problems, reconfigure your locale. See the locale(1) manual
for more information.
Remember requesting the interface on your desktop file: X-KDE-Wayland-Interfaces=zkde_screencast_unstable_v1
libva info: VA-API version 1.21.0
libva info: Trying to open /usr/lib64/dri/nouveau_drv_video.so
libva info: Found init function __vaDriverInit_1_21
libva info: va_openDriver() returns 0
kpipewire_record_logging: VAAPI: Display initialized
kpipewire_record_logging: VAAPI: API version 1 . 21
kpipewire_record_logging: VAAPI: Mesa Gallium driver 24.0.7 for NV167 in use for device "/dev/dri/renderD128"
kpipewire_record_logging: DRM device not found
Screenshot request failed: "The process is not authorized to take a screenshot"
^C

I found a similar (older and closed) bug report here, but the solution described is not applicable because I do not have the described extraneous/outdated desktop file in ~/.local/share/applications/org.kde.spectacle.desktop on my system. The commenter at the end of the bug report (not me) seems to be having a similar problem.

Further, the log output mentions “requesting the interface” on the desktop file, but the desktop file used for launching spectacle contains a line that seems to request this zkde_screencast_unstable_v1 interface already (from my limited understanding of desktop files…):

> cat /usr/share/applications/org.kde.spectacle.desktop | grep "X-KDE-Wayland-Interfaces"
X-KDE-Wayland-Interfaces=org_kde_plasma_window_management,zkde_screencast_unstable_v1

Does anybody know how I could fix this?

Updated to TW 20240524 today and the problem magically went away.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.