-
Notifications
You must be signed in to change notification settings - Fork 0
[Bug] Screenshot with KDE and Wayland #236
Description
I just started testing the current dev regarding the Wayland features. I have seen that you had to add some changes for GNOME, but those now don't work well with KDE.
The points I have are:
-
When you set the
interactive=trueoption, a dialog is shown when requesting a screenshot in Desktop mode. On KDE, this dialog is quite limited (and look ugly): You can just select three options:- Fullscreen (means all screens)
- Current screen
- Current window
and you can select to include or exclude the mouse cursor, but you have no option to select an arbitrary area.
-
Additionally the screenshot contains the KDE dialog. This might be an KDE error, but of course it is not helpful.
So I think for KDE I have to use the non-interactive mode (which always captures all screens) and need the UBCustomCaptureWindow to select the area.
It is really bad that the application has to handle different behaviors of GNOME, KDE and probably other desktop environments, but this is how Wayland behaves: You have an API (the desktop portal), but you cannot predict what happens when you invoke it. Sigh.
I'm quite sure we will come across similar things in the future. So should we introduce a common piece of code to determine the desktop environment? There is the XDG_CURRENT_DESKTOP environment variable which should tell us.
@kaamui: Comments? More ideas?