Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Specify WebKit version to be used #808

Merged
merged 1 commit into from
Nov 13, 2021

Conversation

DimStar77
Copy link
Contributor

WebKit exists in multiple versions, namely:
4.0: Gtk 3 / LibSoup 2
4.1: Gtk 3 / Libsoup 3
5.0: Gtk 4 / Libsoup 3

If a user happens to have the GTK 4 variant installed, foliate fails to launch:

(com.github.johnfactotum.Foliate:25683): Gjs-CRITICAL **: 20:25:28.434: JS ERROR: Error: Requiring WebKit2, version none: Requiring namespace 'Gtk' version '4.0', but '3.0' is already loaded
@resource:///com/github/johnfactotum/Foliate/js/main.js:23:42
@/usr/bin/foliate:9:1

Pin foliate to WebKit 2 - 4.0 to circumvent this (4.1 could possibly work, but I doubt any testing was done with Soup 3 so far)

Originally reported downstream at https://bugzilla.opensuse.org/show_bug.cgi?id=1192627

WebKit exists in multiple versions, namely:
4.0: Gtk 3 / LibSoup 2
4.1: Gtk 3 / Libsoup 3
5.0: Gtk 4 / Libsoup 3

If a user happens to have the GTK 4 variant installed, foliate fails to launch:

(com.github.johnfactotum.Foliate:25683): Gjs-CRITICAL **: 20:25:28.434: JS ERROR: Error: Requiring WebKit2, version none: Requiring namespace 'Gtk' version '4.0', but '3.0' is already loaded
@resource:///com/github/johnfactotum/Foliate/js/main.js:23:42
@/usr/bin/foliate:9:1

Pin foliate to WebKit 2 - 4.0 to circumvent this (4.1 could possibly work, but I doubt any testing was done with Soup 3 so far)

Originally reported downstream at https://bugzilla.opensuse.org/show_bug.cgi?id=1192627
@johnfactotum
Copy link
Owner

Thanks!

4.1 should work, I think, as Foliate doesn't use libsoup directly. But probably best to use 4.0 anyway, since most apps will not be ported to libsoup3 until GNOME 42 (I think). By GNOME 42, hopefully Foliate would already be ported to GTK 4.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants