Screencapturing with JRE 21 and Wayland

Hi,

When I start a core22 based snap app running on openjdk-21-jre, the following line gets logged to the console:

Could not load native libraries for ScreencastHelper

and the screen capturing fails (just captures a black screen). I tried to add pipewire to the stage-packages, but this didn’t change anything:

    stage-packages:
      [openjdk-21-jre, pipewire]

neither did adding wayland to the plugs:

    plugs:
      [home, network, desktop, wayland]

any help would be greatly appreciated!

If I build it locally with snapcraft prime --shell and then execute ../stage/usr/bin/pipewire --version I get the following error:

…/stage/usr/bin/pipewire: error while loading shared libraries: libpipewire-0.3.so.0: cannot open shared object file: No such file or directory

Maybe this rings a bell? (adding libpipewire-0.3-0 to the stage-packages didn’t help)

It looks like snap support will just be added in the upcoming 1.2 release of pipewire: https://gitlab.freedesktop.org/pipewire/pipewire/-/releases/1.1.81

Which leads me to the following burning questions:

  • Will pipewire 1.2 ever be available in core22 ?
  • If not, when will the gnome extension be available for core24 ?
1 Like