Skip to content

Bring non-interactive screenshot options to parity with interactive ones #1065

Open
@yamplum

Description

Hi. I was looking into building a screenshot tool for Wayland similar to Flameshot, and it's my understanding that I would use the Screenshot portal for that.

When I experimented with some prototypes, I noticed that the "silent" method call (with interactive: false) significantly lacks in features compared to the interactive one. On my DE (KDE), the interactive dialogue allows to select the screenshot region, whether to include the mouse cursor, set a delay, etc., none of which are available to the other version.

This is perhaps fine for applications that just want to "take a screenshot" and don't particularly care about how it's handled, but it's very inconvenient for writing custom screengrab tools which obviously do care a lot.

The screen capture tools on Linux still lag behind the equivalent solutions on Windows (such as ShareX), and it would be helpful to have the infrastructure in order to improve on that. Would it be possible to expose some of those interactive options on the D-Bus interface to bring the methods up to parity?

I found prior discussion about this in #139, and it seems like there was some initial interest in pursuing it. Would it make sense to restart the discussion?

Metadata

Assignees

No one assigned

    Labels

    help wantedneeds discussionNeeds discussion on how to implement or fix the corresponding tasknew apiThis requires adding API to an existing portalportal: screenshotScreenshot portal

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions