mirror of
https://github.com/LnL7/nix-darwin.git
synced 2024-12-14 11:57:34 +00:00
Merge pull request #560 from pshirshov/fix/broken-fontrestore
fixes #559, #485: workaround for broken fontrestore on Ventura
This commit is contained in:
commit
f6648ca069
1 changed files with 16 additions and 14 deletions
|
@ -58,20 +58,22 @@ in
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
fontrestore default -n 2>&1 | while read -r f; do
|
if [[ "`sw_vers -productVersion`" < "13.0" ]]; then
|
||||||
case $f in
|
fontrestore default -n 2>&1 | while read -r f; do
|
||||||
/Library/Fonts/*)
|
case $f in
|
||||||
font=''${f##*/}
|
/Library/Fonts/*)
|
||||||
if [ ! -e "$systemConfig/Library/Fonts/$font" ]; then
|
font=''${f##*/}
|
||||||
echo "removing font $font..." >&2
|
if [ ! -e "$systemConfig/Library/Fonts/$font" ]; then
|
||||||
rm "/Library/Fonts/$font"
|
echo "removing font $font..." >&2
|
||||||
fi
|
rm "/Library/Fonts/$font"
|
||||||
;;
|
fi
|
||||||
/*)
|
;;
|
||||||
# ignoring unexpected fonts
|
/*)
|
||||||
;;
|
# ignoring unexpected fonts
|
||||||
esac
|
;;
|
||||||
done
|
esac
|
||||||
|
done
|
||||||
|
fi
|
||||||
'';
|
'';
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue