Evince shows PDF documents and needs fonts.
Context: ~/.cache symlinked by administrator
Users directory here are split between a "clean" part and a "messy" part. The idea is to care more about the "clean" parts (backup etc) and less about the "messy" parts.
The users' ~/.cache is a symlink to the messy part.
Symptom: slow start
This causes evince to start slowly: 20 seconds wait before any window appear. After the window appears, things seem normal.
Investigation
straceshows that during the first 2 seconds, it tries a lot to access files in~/.cache/fontconfigand/var/cache/fontconfigthat fail withEACCESS- then it spends about 18 seconds enumerating data in
/usr/share/fonts ~/.cache/fontconfigis readable and writable by user,/var/cache/fontconfigdoes not exist.
Interpretation
Similar issues (e.g. Evince...(Permission denied) - Ask Ubuntu ) strongly suggest that AppArmor is involved.
How to fix?
- Some invite to disable AppArmor for evince but that feels wrong.
- Other invite to put evince in aa-complain mode which feels wrong, too.
- What to do?