Retire the stock user icon font missed by Quattro upgrades

This commit is contained in:
Ryan Hughes committed 2026-09-08 02:36:58 -04:00
1 parent 726a56ba03
commit f5cd244ed0
6 files changed
+135 -9

No files matched your search

+21
View File
@@ -0,0 +1,21 @@
echo "Retire the stock user icon font missed by the Quattro upgrade"
legacy_font="$HOME/.local/share/fonts/omarchy.ttf"
# The upgrader treated this as ~/.config/omarchy.ttf and left the old family
# registered alongside the packaged font. Preserve custom fonts and symlinks.
if [[ -f $legacy_font && ! -L $legacy_font ]]; then
legacy_hash=$(sha256sum "$legacy_font")
if [[ ${legacy_hash%% *} == "e55e67119e82f56f92d90cbf54b7ccc1b2946b32c535a29370439d7ef5215966" ]]; then
if [[ ! -f /usr/share/fonts/omarchy/omarchy.ttf ]]; then
echo "Packaged Omarchy icon font is missing; keeping the legacy font." >&2
exit 1
fi
rm "$legacy_font"
fi
fi
# Also refresh on retries after removal succeeded but the cache refresh failed.
# The normal update restarts the shell, which reloads Qt's font database.
fc-cache -f