Foliate does not run in Ubuntu 24.04 due to apparmor issue

Bug #2060767 reported by Archisman Panigrahi
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
apparmor (Ubuntu)
Fix Committed
Undecided
John Johansen

Bug Description

When I try to open any epub via Foliate (installed from official Ubuntu repositories), it does not run.
```
$ foliate Alcott, Louisa May - Little Women.epub

(com.github.johnfactotum.Foliate:2289): Gtk-WARNING **: 01:51:13.769: Unknown key gtk-modules in /home/archisman/.config/gtk-4.0/settings.ini
bwrap: setting up uid map: Permission denied

** (com.github.johnfactotum.Foliate:2289): ERROR **: 01:51:14.283: Failed to fully launch dbus-proxy: Child process exited with code 1
Trace/breakpoint trap
```

A workaround (https://github.com/johnfactotum/foliate/issues/1271#issuecomment-2016575770) is to create the `/etc/apparmor.d/foliate` file with the appropriate content described in that link.

A similar bug was reported for VSCode (https://bugs.launchpad.net/ubuntu/+source/apparmor/+bug/2056517)

Tags: noble
description: updated
Revision history for this message
John Johansen (jjohansen) wrote :

The fix has been merged upstream in https://gitlab.com/apparmor/apparmor/-/merge_requests/1209

it will be in the next release.

Changed in apparmor (Ubuntu):
status: New → Confirmed
assignee: nobody → John Johansen (jjohansen)
Revision history for this message
Archisman Panigrahi (apandada1) wrote :

Thank you for the fix, John. Wike is also affected https://github.com/hugolabe/Wike/issues/181

Do you have to manually add exception for each app? That would be very hard to implement, because someone might create a new app and it would not work on Ubuntu.

Changed in apparmor (Ubuntu):
status: Confirmed → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.