#1071608 apparmor prevents storage of preferences

Package:
evince
Source:
evince
Description:
Document (PostScript, PDF) viewer
Submitter:
Harald Welte
Date:
2024-05-22 10:27:04 UTC
Severity:
normal
#1071608#5
Date:
2024-05-22 09:46:42 UTC
From:
To:
At some point evince on my system stopped to use the document-specific preference that I have stored over the
past few years (such as inverted display for many PDFs).  Instead, every PDF is opened without that
preference.

I have the suspicion that it's apparmor related, as I get lots of errors every time I start evince:

(evince:185861): Gtk-WARNING **: 11:42:12.750: Failed to parse /space/home/laforge/.config/gtk-3.0/settings.ini: Permission denied

(evince:185861): Gtk-WARNING **: 11:42:12.795: Attempting to read the recently used resources file at '/space/home/laforge/.local/share/recently-used.xbel', but the parser failed: Failed to open file “/space/home/laforge/.local/share/recently-used.xbel”: Permission denied.

(evince:185861): GVFS-WARNING **: 11:42:12.847: can't init metadata tree /space/home/laforge/.local/share/gvfs-metadata/home: open: Permission denied
[many repeated messages]
** (evince:185861): WARNING **: 11:42:12.884: Error setting file metadata: can’t open metadata tree
[many repeated messages]
(evince:185861): Gtk-WARNING **: 11:42:13.162: Attempting to store changes into '/space/home/laforge/.local/share/recently-used.xbel', but failed: Failed to create file “/space/home/laforge/.local/share/recently-used.xbel.KJX8N2”: Permission denied
(evince:185861): Gtk-WARNING **: 11:42:13.162: Attempting to set the permissions of '/space/home/laforge/.local/share/recently-used.xbel', but failed: Permission denied


I guess I can work around this with custom apparmor rules, but shouldn't the default be continue working as normal, and not loose important features by the default apparmor rules?