DESCRIPTION GIMP has a built in screenshot tool. File > Create > Screenshot. This tool worked as of 5.19.5, but now fails with an error. (Both with X, Wayland not tested.) Execution error for 'Screenshot': GDBus.Error:org.kde.kwin.Screenshot.Error.NoAuthorized: The process is not authorized to take a screenshot It looks like a feature was added to provide more security around screenshots (although, I'm not sure what the point is on X - anything that doesn't play nice and use KWin's DBUS method still works find, scrot for example). I can't find anything in systemsettings to allow other programs to take screenshots, so (IMO) this security feature should be disabled until some way to manage them is provided. SOFTWARE/OS VERSIONS Linux: Arch Linux 5.9.0-arch1-1 KDE Plasma Version: 5.20.0 (X) KDE Frameworks Version: 5.75.0 Qt Version: 5.15.1
Arch Linux bug report: https://bugs.archlinux.org/task/68311 GIMP issue: https://gitlab.gnome.org/GNOME/gimp/-/issues/5785
Thanks for the confirmation. Just want to note that I think this is something that should probably be fixed in KDE as well, right? It would be weird to just ship every app that might need to take a screenshot with a built-in permission request. Surely what we're moving toward is giving the user control over this, so I think KDE should disable it until it can be controlled from System Settings.
Long term from an app POV what would work now and moving forwards is to call into xdg-desktop-portal instead of kwin directly. It'll solve this, and be fewer code paths for you (gimp) to maintain.
Is there anything for us in KDE to do here?
I am thinking we should add a confirmation dialog when such a feature is requested from an app, and KWin or Plasma would keep the past authorized apps list locally with eventually some apps pre-authorized like spectacle. Similar to what Android does for its authorizations. We would need first a backend for such apps authorization and then a KCM. That would be the long term way to go.
I would recommend GIMP screenshot tool to use xdg-shell-portal DE independant dbus service. https://flatpak.github.io/xdg-desktop-portal/portal-docs.html#gdbus-org.freedesktop.portal.Screenshot
Looks like we're not going to fix this on our side, and the recommendation is for GIMP to move to the commonly supported cross-desktop API.