Commit 123e1d97 authored by Gibbs, Ian's avatar Gibbs, Ian
Browse files

rebuild font cache

parent e2d2a5fd
Loading
Loading
Loading
Loading
Loading
+21 −1
Original line number Diff line number Diff line
@@ -11,6 +11,26 @@ if [ -v CONDA_ENVIRON ]; then
    # put together arguments - conda_env, application, argv
    args=("${CONDA_ENVIRON}" "quicknxs" "$@")

    # override the normal call to activate_and_launch() function

    # first argument is conda environment
    CONDA_EXP_ENV="${1}"
    shift
    # second argument is startup command
    COMMAND="${1}"
    shift
    # the rest is passed to the command being started

    _remove_font_cache

    # rebuild the font cache
    fc-cache -r

    # start the application
    activate_and_launch "${args[@]}"
    activate_conda_environment "${CONDA_EXP_ENV}"

    echo "Execute: ${COMMAND} $*"
    "${COMMAND}" "$@"
}

fi