johnfactotum / foliate

Read e-books in style
https://johnfactotum.github.io/foliate/
GNU General Public License v3.0
6.43k stars 296 forks source link

Failed to spawn webkitgtk process #1368

Closed Divelix closed 3 months ago

Divelix commented 3 months ago

I just installed foliate via snap on Ubuntu 22.04 and tried to open EPUB file with it. It throws this error:

(com.github.johnfactotum.Foliate:73301): Gtk-WARNING **: 12:48:07.623: No IM module matching GTK_IM_MODULE=ibus found

(com.github.johnfactotum.Foliate:73301): GLib-GIO-WARNING **: 12:48:09.585: Error creating IO channel for /proc/self/mountinfo: Permission denied (g-file-error-quark, 2)

** (com.github.johnfactotum.Foliate:73301): WARNING **: 12:48:15.448: Could not open /sys/class/dmi/id/chassis_type: Failed to open file “/sys/class/dmi/id/chassis_type”: Permission denied

** (com.github.johnfactotum.Foliate:73301): WARNING **: 12:48:15.448: Could not open /sys/firmware/acpi/pm_profile: Failed to open file “/sys/firmware/acpi/pm_profile”: Permission denied

** (com.github.johnfactotum.Foliate:73301): ERROR **: 12:48:15.452: Unable to spawn a new child process: Failed to spawn child process “/usr/lib/x86_64-linux-gnu/webkitgtk-6.0/WebKitNetworkProcess” (No such file or directory)
[1]    73301 trace trap (core dumped)  foliate

To Reproduce Steps to reproduce the behavior:

  1. sudo snap install foliate
  2. foliate (call in terminal to see stdout)
  3. Click Open... and choose EPUB file

Expected behavior Open file without error

Version:

My guess: May be I should do some snap connect permissions for foliage? But which ones?

drfickle commented 3 months ago

I'm getting the same error on Ubuntu 22.04. In case it's book specific, I'm trying to read https://12factor.net/12factor.epub

johnfactotum commented 3 months ago

Duplicate of #1102