hugolabe / Wike

Wikipedia Reader for the GNOME Desktop
https://hugolabe.github.io/Wike/
GNU General Public License v3.0
228 stars 32 forks source link

Wike does not run in Ubuntu 24.04: Failed to fully launch dbus-proxy #181

Open archisman-panigrahi opened 3 months ago

archisman-panigrahi commented 3 months ago

Wike (deb package/compiled version) does not run in Ubuntu 24.04 possibly due to some interference between apparmor and webkit.

$ wike

(process:11686): Gtk-WARNING **: 02:55:41.246: Unknown key gtk-modules in /home/archisman/.config/gtk-4.0/settings.ini
bwrap: setting up uid map: Permission denied

** (wike:11686): ERROR **: 02:55:41.837: Failed to fully launch dbus-proxy: Child process exited with code 1
Trace/breakpoint trap

A similar error is occuring in Foliate https://github.com/johnfactotum/foliate/issues/1262


A workaround is to create the file /etc/apparmor.d/wike with the following contents:

# This profile allows everything and only exists to give the
# application a name instead of having the label "unconfined"

abi <abi/4.0>,
include <tunables/global>

profile wike /usr/bin/wike flags=(unconfined) {
  userns,

  # Site-specific additions and overrides. See local/README for details.
  include if exists <local/wike>
}

Then run sudo systemctl restart apparmor.service


The flatpak most likely works without any error.

hugolabe commented 2 months ago

Sorry I can't help with this. I have no knowledge about deb packaging.

archisman-panigrahi commented 2 months ago

Sorry I can't help with this. I have no knowledge about deb packaging.

It is a bug introduced by new changes in apparmor. It is an apparmor bug. Way too many apps are affected by this, and the version of Wike shipped with Ubuntu is also affected.

Just wanted to mention that the issue is present in Ubuntu 24.04, and there is the workaround until a fix is released.