Trigger font cache rebuild if new fonts added to the system

Bug #1897098 reported by Igor Ljubuncic
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Snapcraft
Confirmed
Wishlist
Unassigned
snapd
Confirmed
Wishlist
Unassigned

Bug Description

This is a placeholder bug for the implementation of font cache rebuild if new fonts are added to the system (global or per-user) after a snap is installed to ensure font consistency.

Revision history for this message
Sergio Schvezov (sergiusens) wrote :

The only way I can think of this working is if snapd executes the configure hook for snaps using the desktop-y interfaces.

Changed in snapcraft:
status: New → Confirmed
importance: Undecided → Wishlist
Revision history for this message
Igor Ljubuncic (igorljubuncic-deactivatedaccount) wrote :

A potential solution could be that any snap run * commands checks for the mtime for the system font caches directory, and if these have not been updated by any other utility and/or fontconfig, then snapd can trigger the system font cache refresh.

The mtime check could work around any snap that doesn't use desktop launchers, where there is no check for new fonts after snaps are installed, or there's no hook/notification on font addition.

This also works around any time consistency whereby snapd periodically checks and updates fonts - but a snap is run in the window between the two and after new fonts were added.

Changed in snapd:
status: New → Confirmed
importance: Undecided → Wishlist
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.