[Gambas-user] Test Screen.Available values

Benoit Minisini benoit.minisini at gambas-basic.org
Tue May 16 16:04:53 CEST 2023


Le 16/05/2023 à 16:01, Mayost Sharon a écrit :
> Hello
> 
> I noticed I'm on X11
> 
> I reverted my system to Wayland
> And now it captures a picture but everything is black
> 
> Is this the problem you meant?
> 

No, it's Wayland that prevents screen capture for "normal" programs.

If you use the development version, I have recently added support for 
"freedesktop portal", a DBus interface that allows to ask for a desktop 
screenshot.

It works, but it is far slower, as it executes a screenshot program in 
the background to get the screenshot, save it to a file, and then you 
have to reload the file to finally get the screenshot.

Regards,

-- 
Benoît Minisini.



More information about the User mailing list