Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Add support for cross-platform wayland screenshots using xdg-desktop-portal #243

@maximbaz

Description

@maximbaz

I noticed you currently use vendor-specific code to take screenshots on Gnome and KDE and do not support any other DE.

I currently use sway and it's a shame ksnip is not able to take screenshots there.

In fact there is a cross-platform way of taking screenshots, which I discovered here: flameshot-org/flameshot#446

To quote that ticket:

The cross-platform way to take screenshots on Wayland is via xdg-desktop-portal (which also works outside of Flatpak). See https://github.com/flatpak/xdg-desktop-portal/blob/master/data/org.freedesktop.portal.Screenshot.xml

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions