Skip to content

Commit

Permalink
Synfig: Clear Fontconfig cache when launching appimage for first time
Browse files Browse the repository at this point in the history
This is done to avoid bugs described here:
- synfig/synfig#2607 (comment)
- synfig/synfig#2625 (comment)
  • Loading branch information
morevnaproject committed May 17, 2022
1 parent cc625cb commit abd63e7
Showing 1 changed file with 6 additions and 0 deletions.
Expand Up @@ -56,6 +56,12 @@ if [ "$1" = "--appimage-exec" ]; then
exit 1
fi
elif [ -z "$2" ]; then
HINTFILE=${HOME}/.cache/fontconfig/synfigstudio-appimage-1
if [ ! -f ${HINTFILE} ]; then
rm -rf ${HOME}/.cache/fontconfig || true
mkdir -p ${HOME}/.cache/fontconfig || true
touch ${HINTFILE}
fi
if ( which zenity >/dev/null ) ; then
"$BASE_DIR/bin/fc-cache" |tee >(LD_LIBRARY_PATH="" FONTCONFIG_PATH="" zenity --progress --pulsate --title="Synfig Studio" --no-cancel --auto-close --text="Please wait, generating font cache...")
elif ( which kdialog >/dev/null ) && ( which qdbus >/dev/null ) ; then
Expand Down

0 comments on commit abd63e7

Please sign in to comment.