scrot icon indicating copy to clipboard operation
scrot copied to clipboard

xdg-desktop-portal support

Open eternal-sorrow opened this issue 2 years ago • 4 comments

Add Screenshot portal support so that it would also work on Wayland.

eternal-sorrow avatar Aug 26 '22 00:08 eternal-sorrow

Being able to take screenshots of Wayland and also Haiku, Windows, MacOS is one of my personal interests, but that would require significant refactoring right now. Most of scrot's code is heavily tied to Xorg.

guijan avatar Oct 09 '22 13:10 guijan

Also, isn't xdg-desktop-portal specific to flatpak and such?

I would love for scrot to work on Wayland as well, however, I'm against scrot being changed for/with things that are explicit to containerized applications.

P.S. Feel free to correct me if xdg-desktop-portal isn't a flatpak thing and it's not exclusive to containerized/sandboxed applications.

ifohancroft avatar Jan 06 '23 01:01 ifohancroft

Also, isn't xdg-desktop-portal specific to flatpak and such?

No, it's not.

eternal-sorrow avatar Jan 06 '23 01:01 eternal-sorrow

Also, isn't xdg-desktop-portal specific to flatpak and such?

No, it's not.

I think you are right. Apparently it has its uses in Wayland, but separately from that, in containerized applications as well. I'm guessing because Wayland is not that widespread yet, when you search for xdg-desktop-portal, mostly stuff about its usage with containerized applications comes up.

ifohancroft avatar Jan 06 '23 02:01 ifohancroft