alert_fccache.sh revision 23c05328a187d8e617c54ffcd92fbcb33152b806
b7f07692f95074fdcf74c7350fbf5f3099ffc1b6miklosh set parent_path to "$CWD"
b7f07692f95074fdcf74c7350fbf5f3099ffc1b6miklosh set icon_path to POSIX path of (parent_path & "/Inkscape.icns")
b7f07692f95074fdcf74c7350fbf5f3099ffc1b6miklosh set front_app to ((path to frontmost application) as text)
b7f07692f95074fdcf74c7350fbf5f3099ffc1b6miklosh tell application front_app
b7f07692f95074fdcf74c7350fbf5f3099ffc1b6miklosh display dialog "While Inkscape is open, its windows can be displayed or hidden by displaying or hiding the X11 application.
4b1c2be41ce8c1a88502c1b1885ad1468646fbfftheadibThe first time this version of Inkscape is run it may take several minutes before the main window is displayed while font caches are built." buttons {"OK"} default button 1 with title "Inkscape on OS X" with icon POSIX file icon_path
b7f07692f95074fdcf74c7350fbf5f3099ffc1b6mikloshif [ -z "$INK_CACHE_DIR" ]; then
b7f07692f95074fdcf74c7350fbf5f3099ffc1b6miklosh export INK_CACHE_DIR="${HOME}/.cache/inkscape"
b7f07692f95074fdcf74c7350fbf5f3099ffc1b6miklosh mkdir -p "$INK_CACHE_DIR"
b7f07692f95074fdcf74c7350fbf5f3099ffc1b6miklosh [ $_DEBUG ] && echo "INK_CACHE_DIR: falling back to $INK_CACHE_DIR"
b7f07692f95074fdcf74c7350fbf5f3099ffc1b6miklosh# Warn the user about time-consuming generation of fontconfig caches.
b7f07692f95074fdcf74c7350fbf5f3099ffc1b6mikloshif [ ! -f "${INK_CACHE_DIR}/.fccache-new" ]; then
b7f07692f95074fdcf74c7350fbf5f3099ffc1b6miklosh alert_result=$(osascript -e "$ALERT_SCRIPT")
b7f07692f95074fdcf74c7350fbf5f3099ffc1b6miklosh mkdir -p "$INK_CACHE_DIR"
b7f07692f95074fdcf74c7350fbf5f3099ffc1b6miklosh touch "${INK_CACHE_DIR}/.fccache-new"