From 78c4d05844ea8c0f349246bff7884a580e4fc9a2 Mon Sep 17 00:00:00 2001 From: Konstantin Dmitriev Date: Dec 13 2021 16:10:39 +0000 Subject: Show dialog when font cache generated. For #1849 and #2397. We still have to add zenity into appimage. --- diff --git a/env-builder-data/build/script/packet/synfigstudio-appimage.files/launch.sh b/env-builder-data/build/script/packet/synfigstudio-appimage.files/launch.sh index c54c653..b9d0e2f 100755 --- a/env-builder-data/build/script/packet/synfigstudio-appimage.files/launch.sh +++ b/env-builder-data/build/script/packet/synfigstudio-appimage.files/launch.sh @@ -56,6 +56,9 @@ if [ "$1" = "--appimage-exec" ]; then exit 1 fi elif [ -z "$2" ]; then + if [ -x /usr/bin/zenity ] ; then + "$BASE_DIR/bin/fc-cache" |tee >(LD_LIBRARY_PATH="" zenity --progress --pulsate --title="Fontconfig" --no-cancel --auto-close --text="Please wait, generating font cache...") + fi if ! "$BASE_DIR/bin/synfigstudio.wrapper" "$@"; then exit 1 fi