[webkit-gtk] WebkitGtk 2.26.0 WebKitWebView fails to display in a Gtk3 app.
jralls at ceridwen.fremont.ca.us
jralls at ceridwen.fremont.ca.us
Sat Mar 26 18:32:47 PDT 2022
> On Mar 26, 2022, at 6:16 PM, Michael Catanzaro <mcatanzaro at gnome.org> wrote:
>
>
> Hi, the default hardware acceleration policy changed from WEBKIT_HARDWARE_ACCELERATION_POLICY_ON_DEMAND to WEBKIT_HARDWARE_ACCELERATION_POLICY_ALWAYS. I think you need to add "--device=dri" to the finish-args in your flatpak-builder manifest:
>
> https://github.com/flathub/org.gnucash.GnuCash/blob/master/org.gnucash.GnuCash.json
>
> so try that. If that fixes it, let us know and I'll post an announcement to remind other maintainers.
>
> Alternatively, you could use webkit_settings_set_hardware_acceleration_policy() to select WEBKIT_HARDWARE_ACCELERATION_POLICY_NEVER to disable GPU usage. This option will go away with GTK 4 though -- WebKitGTK will always require GPU -- so probably better to leave it enabled and shake out any problems now.
>
> Hope that helps,
>
> Michael
>
>
> On Mar 26, 2022, at 6:20 PM, Michael Catanzaro <mcatanzaro at gnome.org> wrote:
>
> Unrelated tip: change "--socket=x11" to "--socket=fallback-x11" to allow flatpak to block X11 access unless the host environment is actually X11. "--socket=x11" should only be needed for apps that don't support Wayland.
>
> Michael
>
>
Thanks, Michael. I'll set those in tomorrow's flatpak build (it happens we're doing a release this weekend) and see if that fixes it. It seems not to affect all platforms; it worked OK on Fedora 35 for example.
Regards,
John Ralls
More information about the webkit-gtk
mailing list