Hacker News new | ask | show | jobs
by sprash 1907 days ago
> I've been hearing/saying basically this for decades.

After almost 13 years of development Wayland gains a (de-facto not even standardized) way to something as simple as taking screenshots / streaming. This is not "very good".

2 comments

First of all, this is a standardized way (it is standardized in the XDG desktop portal APIs, which are implemented for example by Plasma and Gnome, and for wlroots-based compositors).

It was also never within the scope of Wayland to provide these kinds of APIs (previously when screen capture was available through the X11 interface, that was more of an accident than an intended feature, and it was an intentional design choice not to repeat this mistake in the design of Wayland).

Instead, compositors and applications (that use the Wayland protocol to communicate) were supposed to agree on a standard interface to do these kinds of things and then use that interface. And that's in fact what they did, by implementing the XDG desktop portal system (that's entirely separate from Wayland). I also see evidence of this interface existing as far back as 2016, although I didn't go digging for when it was initially invented.

Notice that this article doesn't say "is it now possible to screen capture when using Wayland", it only says that OBS Studio now uses this standard interface for screen capturing.

Considering the alternative is not having the feature... I'd say this is very good.

Of course, we have to consider that wayland is basically a re-thought for a substitute of a system that exists and evolves since early 80's... It is acceptable that it takes long. If such wait is needed to get something better than what we had and fix antique design limitations, I have no problem waiting for it.