Can't take screenshots (KDE Wayland)

I can’t make screenshots in the KDE version under Wayland. My screenshot apps both give an error message:

Spectacle:

On Wayland, Spectacle requires KDE Plasma’s KWin compositor, which does not seem to be available. Use Spectacle on KDE Plasma, or use a different screenshot tool.
Clicking on this, the Spectacle main window is shown with “An error occured while taking a screenshot”

KSnip:

Kein Bild angegeben, obwohl eines erwartet wurde.
(No image supplied, although one was expected)

System info:

:~$ inxi --graphics
Graphics:
  Device-1: AMD Navi 23 [Radeon RX 6600/6600 XT/6600M] driver: amdgpu
    v: kernel
  Device-2: AMD Cezanne [Radeon Vega Series / Radeon Mobile Series]
    driver: amdgpu v: kernel
  Display: wayland server: X.org v: 1.20.14 with: Xwayland v: 24.1.1
    compositor: kwin_wayland driver: X: loaded: amdgpu
    unloaded: fbdev,modesetting,radeon,vesa dri: radeonsi gpu: amdgpu,amdgpu
    resolution: 1920x1080
  API: EGL v: 1.5 drivers: kms_swrast,radeonsi,swrast
    platforms: gbm,wayland,x11,surfaceless,device
  API: OpenGL v: 4.6 compat-v: 4.5 vendor: amd mesa v: 24.1.5 renderer: AMD
    Radeon RX 6600M (radeonsi navi23 LLVM 18.1.6 DRM 3.57
    6.9.12-200.fc40.x86_64)
  API: Vulkan v: 1.3.283 drivers: N/A surfaces: xcb,xlib,wayland

Note: both work in X11, but I need this to work in Wayland

This is not a general problem with Wayland and Plasma/Spectacle, it works just fine here, on a KDE Plasma system. I also have an AMD Mobile CPU, quite similar to your system, that doesn’t appear to be the problem, either.

A quick Google search turned up a thread in the ComputerBase forums (in German, but from your command output I think this is not a problem for you). In that thread, they imply that this is caused by Firejail. Are you using any kind of sandboxing/isolation tools?

1 Like

Thanks for looking. Indeed I have Firejail installed. I also found a thread right here suggesting a fix.
:white_check_mark: it works, deleting the org.kde.spectacle desktop file in ~/.local/share/applications brings Spectacle back to life!
However, I also have Ksnip installed, which is still not working, and there is no desktop file for ksnip in that folder. > Discovered an open Ksnip bug Enabling “Force Generic Wayland screenshot” in settings under “Image Grabber” lets me use Ksnip to take a full screenshot, but not selected rectangle.

So, one symptom, two different reasons.

1 Like