letsfindaway / OpenBoard

I'm using this fork to contribute features and fixes to the upstream project. In order to create good pull requests, I'm rebasing my feature branches, squashing and reordering commits, etc. If you fork this repository be aware that my development branches may rewrite history without prior notice.
http://openboard.ch/
GNU General Public License v3.0
9 stars 0 forks source link

[Feature Request] Screenshot on Wayland #174

Open letsfindaway opened 2 months ago

letsfindaway commented 2 months ago

Is your feature request related to a problem? Please describe. Sooner or later OpenBoard will be required to run with Wayland. This feature request is addressing one of the more easy parts of this transition, allowing screenshots to be taken.

Describe the solution you'd like The screenshot shall be taken using the XDG Portal if Wayland is active. The implementation could be part of the UBPlatformUtils.

Describe alternatives you've considered There is none.

Additional context Additionally it might be useful to set the QT_QPA_PLATFORM=xcb in order to use xwayland, as we have experienced some crashes without that. The analysis of these crashes is another topic. However this makes it impossible to detect Wayland using QtGuiApplication::platformName(). Instead we can use the environment variable XDG_SESSION_TYPE.