Skip to content

[Bug] Screenshot with KDE and Wayland #236

@letsfindaway

Description

@letsfindaway

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=true option, 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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions